0% found this document useful (0 votes)
19 views

Python Q1 A&B

Write a python program to create a package (college), subpackage (alldept), modules (it, cse) and create admin and cabin function to module?

Uploaded by

rutujakane2422
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Python Q1 A&B

Write a python program to create a package (college), subpackage (alldept), modules (it, cse) and create admin and cabin function to module?

Uploaded by

rutujakane2422
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

NAME:RUTUJA KANE SUBJECT: PPL ROLLON:48 DIV:C(AIML)

Q1) A-A) Develop a program to read the student details like Name, N, and Marks in three subjects.
Display the student details, total marks and percentage with suitable messages.

print("RUTUJA KANE")

name=input('Enter the Name of Student:')

usn=input('Enter the USN of Student:')

marks1=int(input('Enter the marks in first subject:'))

marks2=int(input('Enter the marks in second subject:'))

marks3=int(input('Enter the marks in third subject:'))

total_marks=marks1+marks2+marks3

percentage=(total_marks/300)*100

print('Student Details are')

print('Name is',name)

print('USN is',usn)

print('Marks in first subject is:',marks1)

print('Marks in second subject is:',marks2)

print('Marks in third subject is:',marks3)

print('Total Marks obtained is:',total_marks)

print('Percentage of Marks',percentage)

OUTPUT:-
NAME:RUTUJA KANE SUBJECT: PPL ROLLON:48 DIV:C(AIML)

B) Develop a program to read the name and year of birth of a person. Display whether the person is
a senior citizen or not.

print("RUTUJA KANE")

name=input('Enter the Name:')

year_of_birth=int(input('Enter the birth year:'))

current_year=int(input('Enter the present year:'))

age=current_year-year_of_birth

if age>60:

print('Senior Citizen')

else:

print('Not Senior Citizen')

OUTPUT:-

You might also like