[Tutor] problem with code

Emile van Sebille emile at fenx.com
Thu Aug 20 16:44:10 CEST 2015


On 8/20/2015 2:50 AM, Nathan Clark wrote:
> I have written a basic program out of python and it is not functioning,
> please could you proof read my code and tell me how to fix it.It is in
> python 3.3
>
> time=int(input("How long on average do you spend on the computer per day?")
> (print("that seems reasonable")) if time<=2
> else print ("get a life")

Check your parens -- they're mismatched.

Emile





More information about the Tutor mailing list