For questions 1-4, consider the following code:
num = int(input("Enter a number: "))
num = num % 4
if (num == 1):
print ("A")
elif (num == 2):
print ("B")
elif (num == 3):
print ("C")
elif (num == 4):
print ("D")
else:
print ("E")
If the user enters 5 what is output?

Respuesta :

Answer:

A

Explanation:

if enters 5, then num takes a 5 value

num % 4  is the remainder of 5 divided by 4 that is 1

Finally num is equals to 1. For this reason the outpuut is A