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
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
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?")
>
>
>
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.
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
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
Hi,
On 25 July 2013 00:23, Jonathan Hong jayhong...@gmail.com 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
Steven D'Aprano st...@pearwood.info 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
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
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.
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
11 matches
Mail list logo