24 May 2026
Replymessage unavailable
This is not a Python specific question, please delete your offtopic message, move to @PythonOfftopic and ask there.
Briani need your help please
Impossible to help without details.
Read this please:
http://www.catb.org/~esr/faqs/smart-questions.html
25 May 2026
.Dont work
Impossible to help without details.
Read this please:
http://www.catb.org/~esr/faqs/smart-questions.html
26 May 2026
questions = ["which language was used to created fb?", "python", "French", "Java script", "php", "None", 4]
["which language was used to created fb?", "python", "French", "Java script", "php", "None", 4]
["which language was used to created fb?", "python", "French", "Java script", "php", "None", 4]
["which language was used to created fb?", "python", "French", "Java script", "php", "None", 4]
levels=[1000, 2000, 3000, 5000, 10000, 20000, 40000, 80000, 160000, 320000]
money = 0
for i in range(0, len(question)):
question=questions[i]
print(f"Question for Rs. {levels[i]}")
print(f"a. {question[1]} b.{question[2]}")
print(f"c. {question[3]} b.{question[4]}")
reply=int(input("Enter your answer (1-4)"))
if(reply==question[-1]):
print(f"correct answer, you have won Rs.{levels[i]}")
if(i == 4):
money = 10000
elif(i ==9):
money = 320000
elif(i ==14):
money = 100000000
else:
print("Wrong answer!")
break
print("your take home money is {money}")
Uzma Banuquestions = ["which language was used to created fb?", "python", "French", "Java script", "php", "None", 4]
["which language was used to created fb?", "python", "French", "Java script", "php", "None", 4]
["which language was used to created fb?", "python", "French", "Java script", "php", "None"
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://dpaste.org, https://hastebin.com, https://bin.kv2.dev or your favorite one!
Uzma BanuKindly help to solve it
questions = [
["which language was used to create fb?", "python", "French", "JavaScript", "php", 4]
]
levels = [1000]
money = 0
for i in range(len(questions)):
question = questions[i]
print(f"\nQuestion for Rs. {levels[i]}")
print(f"1. {question[1]} 2. {question[2]}")
print(f"3. {question[3]} 4. {question[4]}")
reply = int(input("Enter your answer (1-4): "))
if reply == question[-1]:
print(f"Correct answer! You have won Rs. {levels[i]}")
money = levels[i]
else:
print("Wrong answer!")
break
print(f"Your take home money is {money}")
Uzma BanuKindly help to solve it
It had like 6 issues: question and questions were mixed up, the loop used the wrong variable, the question list structure was off, the wrong answer logic was in the wrong place, the print string was missing an f, and the option labels were messed up (b instead of d).