Code:
def quiz():
for count in range(1):
import time
print ("hello and welcome to my input output quiz")
time.sleep(2)
print()
print("INTRUCTIONS")
time.sleep(2)
print()
print(" you will a choice of 4 possible answers to chose from")
print("you will have 20 second to choose.please answer in lower case")
start =input("Are you ready to start Y/N : ")
if start == "y":
print("QUESTION 1")
print()
Q1=input("which one of these is NOT an import device ? ")
if Q1 == "B" or Q1 == "b":
print ("correct, next question")
else:
print("incorrect, please try again")
# loop before question ? how ever you do that?
print()
time.sleep(2)
print("A: keyboard")
()
print("B: usb")
()
print("C: Mouse")
()
print("D: Joystick")
()
time.sleep(20)
if count == 0:
print ("times up, please try again")
# loop
Comment