Assignment for Python Program (Dated 23/4/2021)
1 Write a program to demonstrate different number datatypes in Python.
2 Write a program to perform different Arithmetic Operations on numbers in
Python.
3 Write a program to create, concatenate and print a string and accessing sub-
string from a given string.
4 Python script to print the current date in the format "Sun May 29 02:26:23
2017".
5 Write a program to create, append, and remove lists in python
6 Write a program to demonstrate working with tuples in python.
7 Write a program to demonstrate working with dictionaries in python.
8 Write a python program to find largest of three numbers.
9 Write a Python program to convert temperatures to and from Celsius,
Fahrenheit.
10 Write a Python program to construct the different pattern, using a nested for
loop.
11 Write a Python script that prints prime numbers less than 20.
12 Write a python program to find factorial of a number using Recursion.
13 Write a program that accepts the lengths of three sides of a triangle as inputs
.The program output should indicate whether or not the triangle is a right
triangle.
14 Write a python program to define a module to find Fibonacci Numbers and
import the module to another program.
15 Write a python program to define a module and import a specific function in
that module to another program.
16 Write a script named [Link]. This script should prompt the user for the
names of two text files. The contents of the first file should be input and written
to the second file.
17 Write a program that inputs a text file. The program should print all of the
unique words in the file in alphabetical order.
18 Write a Python class to reverse a string word by word.
19 Write a Python class to implement pow(x, n).
20 Write a Python class to reverse a string word by word.