Professional Documents
Culture Documents
Cia 1-125004102
Cia 1-125004102
125004102
JAYASAKTHI S
1. -1.0
2. SAS10
3. (a)SASTRA
(b) or (Python is case sensitive) ans: True
4. (a) 1.234e^-4
(b)5*x**2
5. (a) Welcome To Python String Concepts
(b) print(s[11:17])
6. Hello, SASTRA
7. (a) False
(b) False
8. True
9. def check(s, c):
if c in s:
return True
Else:
return False
10. defined_string = "WELCOME TO SASTRA UNIVERSIY"
given_string = "SASTRA"
if given_string in defined_string:
print ("Found")
else:
print ("Not Found")
11.
Book.py
def readBookDetails():
ISBN = int (input("Enter ISBN Number: "))
author = input("Enter author name: ")
edition = int (input("Enter edition: "))
return ISBN, author, edition
Journal.py
def readJournalDetails():
ISSN = int (input("Enter ISSN Number: "))
publisher = input("Enter publisher name: ")
volume = int (input("Enter Volume No.: "))
return ISSN, publisher, volume
Common.py
main.py
12)
Convocation.py
def register(L):
regno = input("Enter Register Number: ")
email = input("Enter Email ID: ")
willing = int(input("Are you willing to attend convocation? (0-No/1-Yes)"))
L.append([regno, email, willing])
def getByProgramme(L, prg):
prg_list = [stu for stu in L if int(stu[0][3:6]) == prg]
return prg_list
def getStudentByRegno(L, regno):
r_stu = [stu for stu in L if stu[0] == regno]
return r_stu
Conv_main.py