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()