[Tutor] problem with code
Nathan Clark
261100nc at gmail.com
Tue Sep 1 15:07:51 CEST 2015
I have written another basic program out of python, please could you
instruct me on how to fix it
question= input("What is your question)
print("Let me think about that")
time.sleep(10) #10 seconds wait
print (question)
print ("lol")
On Thu, Aug 20, 2015 at 4:08 PM, Job <jobrh2993 at gmail.com> wrote:
> #i would do it this way in python2
> #maybe you can use as reference
>
> time = int(raw_input('x'))
>
> If time => 2:
> print 'y'
> else:
> print 'z'
>
> Good luck,
>
> Job
>
> > On Aug 20, 2015, at 2:50 AM, Nathan Clark <261100nc at gmail.com> 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")
> > _______________________________________________
> > Tutor maillist - Tutor at python.org
> > To unsubscribe or change subscription options:
> > https://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list