varuniJ / SUMMER-INTERNSHIP

0 stars 0 forks source link

DAY-2 PYTHON #1

Open varuniJ opened 4 months ago

varuniJ commented 4 months ago

Q1) english=int(input("Enter the marks scored in English: ")) maths=int(input("Enter the marks scored in Maths: ")) science=int(input("Enter the marks scored in Science: ")) sanskrit=int(input("Enter the marks scored in Sanskrit: ")) hindi=int(input("Enter the marks scored in hindi:")) sst=int(input("Enter the marks scored in SST: ")) craft=int(input("Enter the marks scored in craft: ")) marks=(english+maths+science+sanskrit+hindi+sst+craft)/700 print("Percentage of the 7 subjects is ",marks*100)

OUTPUT: Enter the marks scored in English: 89 Enter the marks scored in Maths: 90 Enter the marks scored in Science: 90 Enter the marks scored in Sanskrit: 95 Enter the marks scored in hindi:91 Enter the marks scored in SST: 89 Enter the marks scored in craft: 99 Percentage of the 7 subjects is 91.85714285714286

Q2) name=input("Enter your name:") a="CONGRATS!! YOU ARE PASS!!" date=(input("Enter date:")) print(name,a,date, sep='\n')

OUTPUT: Enter your name: VJ Enter date:12/04 VJ CONGRATS!! YOU ARE PASS!! 12/04

nikku351200 commented 3 months ago

great