You are on page 1of 2

Type your answers here:

1. Python is a easy programing language used by many popular companies such as youtube and it
was made back in the 1990s

2. You use print to display a text message

3. Because there is a : at the end which will make an error

4. Float is for prime numbers and int isnt at it is for other

5. signal=INPUT "Enter the signal color:" if signal=red: print("Stop") else if


signal="Yellow": print=("Wait") else: print==Go
Source Code Python Program:

N=input("Enter your name:")


C=input("Enter your class:")
S=input("Enter your section:")
English=int(input("Enter your English marks:"))
Science=int(input("Enter your Science marks:"))
Math=int(input("Enter your Math marks:"))
Mandarin=int(input("Enter your Mandarin marks:"))
Computer=int(input("Enter your Computer Science marks:"))
Ligma=int(input(English+Science+Math+Mandarin+Computer))
Skibidi=Ligma/5
Total=int(input(Skibidi))
if Per>85:
print("Grade A")
elif Per>70 and Per<=80:
print("Grade B")
elif Per>60 and Per<=70:
print("Grade C")
elif Per>45 and Per<=60:
print("Grade D")
else:
print("Grade E")

You might also like