def Quiz_time():
score=0
int(score)
print("quiz time!")
x=float(input("What is 1*1?"))
x1=int(x)
if(x1==1):
print("Correct")
score=score+1
else:
print("False")
print()
print("肯德基疯狂星期四V我?")
print("A:V我50")
print("B:V我100")
print("C:V我0")
print("D:什么是疯狂星期四")
ans2= input()
if(ans2=="A"):
print("Correct")
score=score+1
else:
print("False")
y=float(input("肯德基什么时候成立的?"))
y1=int(y)
if(y1==1952):
print("Correct")
score=score+1
else:
print("False")
print()
print("麦当劳的吉祥物形象是?")
print("A:肯德基爷爷")
print("B:小丑")
print("C:汉堡人")
print("D:薯条人")
ans2= input()
if(ans2=="B"):
print("Correct")
score=score+1
else:
print("False")
z=float(input("What is 2/2?"))
z1=int(z)
if(z1==1):
print("Correct")
score=score+1
else:
print("False")
print("Congratulations, you got",score,"question right!")
score=score/5*100
print("That is a score of",score,"percent.")
Quiz_time()
def Guessing_Game():
print("GAME LOADING...")
x=int(input("What is the lower bond of the number? "))
y=int(input("What is the upper bond of the number?"))
z=int(input("How many tries for the player to win?"))
print("Generating a random number between ",x,"-",y,"....")
T=0
T=int(T)
import random
As=random.randint(x,y)
RAs=int(As)
print("GAME READY. Now let's play!")
L=input("Hello, What's your name?")
print("Hi",L, ",you are going to guess a number between",x, "and",y,".")
print("You have",z,"tries to win the game. ")
while T<z:
C1=int(input("Your first guess is:"))
T += 1
if C1<RAs:
print("Your guess is too low")
if C1>RAs:
print("Your guess is too high")
if C1==RAs:
break
if C1 == RAs:
print("You guessed the number in",str(T),"tries!")
else:
print("You did not guess the number, The number was",str(RAs))
Guessing_Game()