Thursday, January 7, 2021

Python code for student result system

roll_no=input("Enter roll number:")

name=input("Enter name:")

city=input("Enter city:")

eng=int(input("Enter English Marks:"))

maths=int(input("Enter Maths Marks:"))

sci=int(input("Enter Science Marks:"))

total=eng+maths+sci

average=total/3

print("Roll Number:",roll_no)

print("Name:",name)

print("City:",city)

print("English Marks:",eng)

print("Maths Marks:",maths)

print("Science Marks:",sci)

print("Total Marks:",total)

print("Average:",average)

No comments:

Post a Comment

How to Fight Overthinking or Negative Thoughts?

How to Combat Overthinking or Negative Thoughts? 1. Don’t Fight Your Thoughts Trying to suppress or control negative thoughts often backfire...