Professional Documents
Culture Documents
C.S Programs: PM Shri Kendriya Vidyalaya No.1 Port Blair
C.S Programs: PM Shri Kendriya Vidyalaya No.1 Port Blair
C.S PROGRAMS
Submitted to Submitted by
MANOJ SIR EROTU.JASWANT
P.G.T – CS Roll no.-11A35
Class – XI ‘A’
1|Page
ACKNOWLEDGEMENT
I would like to express my gratitude to my teacher MANOJ Sir
Who gave me the amazing opportunity to do this wonderful
computer science Project on the topic “python programming”
- EROTU.JASWANT
2|Page
CERTIFICATE
Teacher’sSign:…………………………………
Teacher’sName:………………………………
3|Page
CONTENTS
4|Page
1. Write a program to input a welcome message and
print it.
ANS. message = input("Enter welcome message: ")
print("Hello,", message)
5|Page
print ("Area = ‘’, area)
6|Page
if x <z:
min, mid, max = y, x, z
else:
min, mid, max = y, x, z
else:
if x< y :
min, mid, max = z, x,y
else:
min, mid, max = z, y, x
print ("Numbers in ascending order :", min, mid, max)
7|Page
8. Program to print elements of a list [ 'q', 'w', 'e', 'r', 't', 'y' ]
in separate lines along with element's both indexes
(positive and negative).
ANS. L = [ 'q', 'w', 'e', 'r', 't', 'y']
length = len(L)
for a in range(length):
print("At indexes", a, "and", (a - length), "element
:", L[a])
8|Page