uestion ={
“Question”:“What is the captial of India?”,
“Options”:[
“A:Delhi”,
“B:Mumbai”,
“C:Chennai”,
“D:Bengal”,],
“Correct_answer”:“A”,}
{
“Question”:“What is RBI?”,
“Options”:
[
“A:Bank”,
“B:Firm”,
“C:Shop”,
“D:Showroom”,
],
“Correct_answer”:“A”,
}
{
“Question”:“What is Bitcoin?”,
“Options”:
[“A:Pen”,
“B:Fruit”,
“C:Bike”,
“D:Currency”],
"Correct_answer":"D",}
{
“Question”:“Who is Virat Kohli?”,
“Options”:
[“A:Cricketer”,
“B:Footballer”,
“C:Hokey Player”,
“D:Aam Aadami”],
“Correct_Anser”:“A”,}
{
“Question”:“Who is the father on nation?”,
“Options”:
[“A:Mahatma Gandi”,
“B:Mahatma Phule”,
“C:Sardar Patel”,
“D:Narendra Modi”],
“Correct_Answer”:“A”,}
{ “Question”:“who is Google CEO”,
“Options”:[“A:Narendra Modi”,
“B:Sundar Pichai”,
“C:Virat Kohali”,
“D:Mukesh Ambani”],
“Correct_Answer”:“B”,}
{ “Question”:“How many tyres in Bike?”,
“Options”:[“A:One”,“B:Three”,“C:Two”,“D:Four”],
“Correct_Answer”:“C”,}
score = 0
negetive_score = 0
for i in question:
if negetive_score == 3:
print(f"You Lost with the score{score}“)
break
question =i[“question”]
options = i[“Options”]
correct_answer = i[“correct answer”]
ans = input(f”{question}\nA) {options[0]}\tB) {options[1]}\nC) {options[2]}\tD) {options[3]}\n").upper()
if ans == correct_answer:
score +=1
else:
negetive_score +=1
else:
print(f"Congrats!You Won with the Score{score}")