Python Q1 A&B
Python Q1 A&B
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")
total_marks=marks1+marks2+marks3
percentage=(total_marks/300)*100
print('Name is',name)
print('USN is',usn)
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")
age=current_year-year_of_birth
if age>60:
print('Senior Citizen')
else:
OUTPUT:-