ITC Python Programs

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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