Explore Westonci.ca, the top Q&A platform where your questions are answered by professionals and enthusiasts alike. Join our Q&A platform and get accurate answers to all your questions from professionals across multiple disciplines. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.

Whats wrong with this code? in terms of indentation.

#Travies Robinson
#11/23/2020
#Coding Fundamentals : Coding Logic : 03.05 Python Project favorite video game response

def main():

answer = input("Would you like to take a one question survey? (yes or no)")


if(answer == "yes"):


favGame = input("What is your favorite video game?")


print("Your favorite video game is the " + favGame + " amazing i've never played that
before.")


answer = input("What your favorite part of " + favGame + "?")


print("Interesting mabye i should try " + favGame + "."")


Country = input("What country are you living in right now?")


print("You are currently living in " + Country + ".")


Age = input("How old are you?")


print("Your age is " + Age + ".")


print("Thank you for answering the survey and have a great day!")

else:

print("Good-bye")

main()


Sagot :

Answer:

(yes or no)") I do not really think this would work but I really didn't deal with this when i hack. That would need to be seperate from the question. Like for example Question = input("your question")

if Question == ("yes")

print ("well done")

elif Question == ("no")

print ("try again")

Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.