Python PRGM Set 1
Python PRGM Set 1
b. 1 1 1 1 1
22222
33333
44444
55555
c. 1 2 3 4 5 6 7
1234567
1234567
1234567
1234567
1234567
1234567
d. A A A A A A A
BBBBBBB
CCCCCCC
DDDDDDD
EEEEEEE
FFFFFFF
GGGGGGG
e. *
**
***
****
*****
f. *
**
***
****
*****
g.
*
***
*****
*******
*********
h.
*********
*******
*****
***
*
i.
1111 1
2222
333
44
5
16. '''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).'''
17. Write a python program to define a module to find Fibonacci Numbers and import the
module to another program.
20. Write a program in Python to implement readline, readlines, writeline and writelines
using
file handling mechanisms.
22.