Computers and Technology

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 26 what is output?

if the user enters 3 what is output?

if the user enters 48 what is output?

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 12:00, log40
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a. integers. b.floating-point numbers. c. strings. d.boolean
Answers: 1
image
Computers and Technology, 24.06.2019 20:00, impura12713
Avirus enters a computer or network as code embedded in other software directly from another computer
Answers: 1
image
Computers and Technology, 24.06.2019 21:00, Winzen07
Which device has the most limited computing functionality?
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, toricepeda82
What are the 4 basic items that are traded throughout the world?
Answers: 1
Do you know the correct answer?
Num = int(input("enter a number: "))

num = num % 4
if (num == 1):
  print...

Questions in other subjects:

Konu
Mathematics, 11.08.2019 07:10
Konu
Mathematics, 11.08.2019 07:10