Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
215 views

ITC Python Programs

This document contains a summary of an introductory computing course submitted by Hafeez Ali. It includes an overview of the Python programming language and descriptions of 16 programs assigned, ranging from basic printing programs to programs involving user input and mathematical operations. The programs demonstrate foundational Python concepts.

Uploaded by

Hafeez Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
215 views

ITC Python Programs

This document contains a summary of an introductory computing course submitted by Hafeez Ali. It includes an overview of the Python programming language and descriptions of 16 programs assigned, ranging from basic printing programs to programs involving user input and mathematical operations. The programs demonstrate foundational Python concepts.

Uploaded by

Hafeez Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

First Semester:-

Course Title:
Introduction To Computing
Topic:
Python Programs
Submitted To:
Engr. Awais Anjum
Submitted By:
Hafeez Ali
Roll. No:
18-ELE-43

1
Python:
Python is an interpreted high-level programming language for general-purpose programming.
Created by Guido van Rossum and first released in 1991, Python has a design philosophy that
emphasizes code readability, notably using significant whitespace. It provides constructs that enable
clear programming on both small and large scales.

Python features a dynamic type system and automatic memory management. It supports
multiple programming paradigms, including object-oriented, imperative, functional and procedural,
and has a large and comprehensive standard library.

Python interpreters are available for many operating systems. CPython, the reference
implementation of Python, is open source software and has a community-based development
model, as do nearly all of Python's other implementations. Python and CPython are managed by
the non-profit Python Software Foundation.

Program.no.1: Print your name.

Output:

Program.no.2: Enter two numbers and one float number, multiply the both numbers and print new
number and float number

Output:

Program.no.3: Get four numbers from user and print their average.

2
Output:

Program.no.4: Get the length and width of rectangle from user and find the area of rectangle.

Output:

Program.no.5: Get the length of cube from user and find the volume of cube

Output:

3
Program.no.6: Get the radius of circle from user and find the area of circle.

Output:

Program.no.7: Print the counting from 1 to 10.

Output:

Program.no.8: Print the sequence 2, 4, 8, 16, 32, 64, 128, 256.

Output:

Program.no.9: Print the sequence 1, 3, 7, 15, 31, 63, 127, 255.


4
Output:

Program.no.10: Print the sequence 1, 10, 100, 1000, 10000, 100000, 1000000.

Output:

Program.no.11: Get the range from user and print the counting.

Output:

5
Program.no.12: Get the range and a number from the user, print the counting and miss the number
entered.

Output:

Program.no.13: Get the range from user and print the counting without the multiple of 7.

Output:

Program.no.14: Get the range from user and print the counting without the numbers entered.
6
Output:

Program.no.15: Get the range from user and print the counting without the last range number
entered.

Output:

Program.no.16: Get a number from user and print the numbers which divide it.
7
Output:

You might also like