dimanche 8 novembre 2015

Issue with my python code

anwser=str(input("Do you need a new phone? "))

if answer== "no":   
    print ("You are now finished. ")
else:    
    question1=str(input("Do you know what phone you want? ")
    if question1== "no":
        print("Research different phones and chose which pne you like best.")
    else:
        question2=str(input("Do you want to go on a contract? ")
        if question2== "no": 
             question3=str(input("Do you have enought money to pay full price for your phone? ")

What is wrong? How do I improve? It keeps coming up with a syntax error and I don not know why.

Aucun commentaire:

Enregistrer un commentaire