Python

champak
₹2,000.00 ₹300.00
The Python Programming Language at Champak's World
  • 22 students
  • 41 lessons
  • 0 quizzes
  • 10 week duration

Python

Python Print Assignment

schoolname=”Varanasi Science College”
name=input(“Input the name\n”)
phy=int(input(“Physics\n”))
chem=int(input(“Chemistry\n”))
math=int(input(“Math\n”))
total=phy+chem+math
percent=total/3.0
sub1=”Physics”
sub2=”Chemistry”
sub3=”Math”
print(f”{schoolname}\nCandidate Name {name}\n{sub1:10s} {phy:5d}\n{sub2:10s} {chem:5d}\n{sub3:10s} {math:5d}”)

 

Complete the assignment by printing the percent, result and division.

Student is passed if he gets >=40 marks in each subject.

Division

  1. percent >=40 and <50 third
  2. >=50 and <60 second
  3. >=60 first

 

Leave a Reply

Your email address will not be published. Required fields are marked *