Re: [Tutor] Python trouble (Nathan Clark)

2015-12-29 Thread Ricardo Martínez
Hi, the problem is in the line that says: terms = int(input("How many terms of the fibonnaci sequence would you like?") is missing a closing ')' take a look: terms = int(input("How many terms of the fibonnaci sequence would you like?")) Hope you help. ___

Re: [Tutor] Python trouble

2015-12-29 Thread Joel Goldstick
On Tue, Dec 29, 2015 at 11:52 AM, Nathan Clark <26110...@gmail.com> wrote: > 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?") > > > #fu

Re: [Tutor] Python trouble

2015-12-29 Thread Alan Gauld
On 29/12/15 16:52, Nathan Clark wrote: > This is a fibonnaci sequence generator, the colon causes a syntax error Please always post the full error text. It contains much useful information. > terms = int(input("How many terms of the fibonnaci sequence would you > like?") Count the parentheses

[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 num_2

Re: [Tutor] Python Trouble, Please Help!

2013-08-08 Thread Alan Gauld
On 25/07/13 00:23, Jonathan Hong wrote: because of my lack of computer knowledge. When I do put in python helloworld.py into the command prompt line, the computer gives me a response of: "python: can't open file 'hello.py': [Errno 2] No such file You need to supply the full path to the file (o

Re: [Tutor] Python Trouble, Please Help!

2013-08-07 Thread Walter Prins
Hi, On 25 July 2013 00:23, Jonathan Hong wrote: > Hello, > > I am currently working with the Python programming language and had a very > basic question regarding the start up of Python. For some reason, when I > open up the Command Prompt in my Windows 7 computer, I am unable to access > pytho

[Tutor] Python Trouble, Please Help!

2013-08-07 Thread Jonathan Hong
Hello, I am currently working with the Python programming language and had a very basic question regarding the start up of Python. For some reason, when I open up the Command Prompt in my Windows 7 computer, I am unable to access python files. So when I type in the python command, I am able to sta

Re: [Tutor] Python trouble

2011-04-23 Thread Alan Gauld
"Steven D'Aprano" wrote Ok let me try to be more clear. I am trying to write code in the IDLE Python GUI of python 2.7. start a command that goes over two or more lines, the prompt will change to three dots ... Sadly in IDLE it won't do this (I hate that feature of IDLE!) but it will ind

Re: [Tutor] Python trouble

2011-04-22 Thread Steven D'Aprano
Alex Butler wrote: Ok let me try to be more clear. I am trying to write code in the IDLE Python GUI of python 2.7. When I open the new python shell, there is a written header as well as the three >s on the left side. I now those are used as indents and I do not type them in. However, whenever

Re: [Tutor] Python trouble

2011-04-22 Thread Steve Willoughby
On 22-Apr-11 11:52, Alex Butler wrote: Ok let me try to be more clear. I am trying to write code in the IDLE Python GUI of python 2.7. When I open the new python shell, there is a written header as well as the three >s on the left side. I now those are used as indents and I do not type them in. H

[Tutor] Python trouble

2011-04-22 Thread Alex Butler
Ok let me try to be more clear. I am trying to write code in the IDLE Python GUI of python 2.7. When I open the new python shell, there is a written header as well as the three >s on the left side. I now those are used as indents and I do not type them in. However, whenever I write any type of