You are on page 1of 1

def login():

correct_username="Student"
correct_password="112233"
input_username=input("Enter your username:")
input_password=input("Enter your password")
if input_username==correct_username and if input_password==correct_password:
print("Login successful!")
else ("Trey Again")

def ask_question():

score=0

q1=input("What Is official language in kurdistan? ")


if q1.lower()=="kurdish":
print ("Correct")
score +=

q2=input("What Is capital of Iraq? ")


if q2.lower()=="Baghdad":
print ("Correct")
score +=1

q3=input("What Ithe largest mammal on earth?")


if q3.lower()=="blue whale":
print ("Correct")
score+=1
total_quetions=3
percentage_score = (score/total_questions)*100

print("you scored",percentage_score,"out of 100.")

You might also like