[Tutor] Python trouble

2015-12-29 Thread Nathan Clark
This is a fibonnaci sequence generator, the colon causes a syntax error #set variables num_1 = 1 num_2 = 2 count = 0 terms = int(input("How many terms of the fibonnaci sequence would you like?") #function while terms != count : num_3 =num_1+num_2 print (num_3) num_1=num_2

Re: [Tutor] problem with code

2015-09-01 Thread Nathan Clark
5 at 4:08 PM, Job <jobrh2...@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

[Tutor] problem with code

2015-08-20 Thread Nathan Clark
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)