Professional Documents
Culture Documents
Practical File Sample
Practical File Sample
AIM:
Write a program to input name and marks in three subject to print name along with the
total and percentage.
CODING:
# Write a program to input name and marks in three subject to print name along with the
#total and percentage.
for i in range(3):
msg='Enter marks in subject #'+str(i+1)+' :'
m=int(input(msg))
marks.append(m)
print('-'*50)
print('Your name is :',name.upper())
print('Total is :',sum(marks))
print('Percentage is :',round(sum(marks)/len(marks),2))
print('-'*50)