Python List of Programs
Python List of Programs
3. Write a program to create, concatenate and print a string and accessing sub-string from a given
string.
4. Write a python script to print the current date in the following format:
“Sun May 29 02:26:23 IST 2017”
11. Write a Python script that prints prime numbers less than 20.
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 (Recall from the
Pythagorean Theorem that in a right triangle, the square of one side equals the sum of the
squares of the other two sides).
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 copyfile.py. 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.