Preview:
#Create variables using input function
name = input("Enter your name: ")
math = float(input("Enter your Math Grade: "))
science = float(input("Enter your Science Grade: "))
english = int(input("Enter your English Grade: "))

#Calculate average
average = (math + science + english) / 3
average = round(average, 2)  

#Display the results
print("\nName:", name)
print("Math Grade:", math)
print("Science Grade:", science)
print("English Grade:", english)
print("Average:", average)



downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter