If you have any questions, comments or issues with this project please post them here!
The solution is…
print ("Are you a superfan of 'The Big Bang Theory' or a fake fan?") print() print("Answer these questions to find out.") Glasses = input("Does someone wear glasses?") if Glasses == "yes": print("Correct!") else: print("Wrong!") WhoGlasses = input("And who wears glasses?") if WhoGlasses == "Leonard": print("You got it") else: print("Try again!")
But that doesn’t ask the follow up question if they’re right. Which is kinda strange.
what’s the problem with your code?
it works perfectly for me!
It’s the official solution, but logically it makes no sense.
The lesson is about nested ifs. The follow up question should surely be after the person gets it wrong. If they don’t know that someone wears glasses, it doesn’t make sense to ask them a follow up of who wears them. That should logically come after they get it right.
Hi @MrLuther thanks for pointing this out.
I think that maybe the solution has additional indents and I agree it doesn’t make logical sense. I’ll flag this with David/Bethany at Replit to investigate!
identation! in the last 5 lines.
Maybe you could nested those lines under the first “if” to carry on asking another question if the answerd is correct.
Don’t you think it makes more sense in this way
Glasses = input("Does someone wear glasses?") if Glasses == "yes": print("Correct!") WhoGlasses = input("And who wears glasses?") if WhoGlasses == "Leonard": print("You got it") else: print("Wrong!") else: print("Try again!")
With some nifty nesting skills I built a game to test if you are a true fan of a TV show !
Day 7 of #Replit100DaysOfCode #100DaysOfCode.
No note b/c school
I might be wrong here but it looks like you just copy and pasted the solution then added some stuff? I would take out the first part so it looks original. Unless you really like peppa pig and paw patrol…
You will never know