Wednesday, 17 September 2014

Restart = y




We used:
restart='y'
while restart == 'y':
    
    print("i love computer science.\n"*2)

    restart =input("would you like to play again? (y/n)")


To make repeat when you answer "y".
    
                   

No comments:

Post a Comment