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

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?") > > >

Re: [Tutor] MemoryError

2015-12-29 Thread Steven D'Aprano
On Wed, Dec 30, 2015 at 12:00:02AM +0700, Satya Luzy wrote: > Hello, > I am currently working on a program to find the prime factor of n, in which > n is a big integer. Using the Continued Fraction factorization method (I > will provide the source code below, please don't mind the variables).

Re: [Tutor] MemoryError

2015-12-29 Thread Martin A. Brown
Hello there Satya, >I am currently working on a program to find the prime factor of n, in which >n is a big integer. Using the Continued Fraction factorization method (I >will provide the source code below, please don't mind the variables). I do not know the Continued Fraction factorization

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] MemoryError

2015-12-29 Thread Danny Yoo
> To be honest this is probably a bit beyond the scope of the tutor > list which is aimed at questions about the Python language and > standard library. However I'll make a few observations (and assume > your logic is OK since you did test it on some smaller data first) Just to add to Alan's

Re: [Tutor] MemoryError

2015-12-29 Thread Alan Gauld
On 29/12/15 17:00, Satya Luzy wrote: > Hello, > I am currently working on a program to find the prime factor of n, in which > n is a big integer. Using the Continued Fraction factorization method To be honest this is probably a bit beyond the scope of the tutor list which is aimed at questions

Re: [Tutor] reading an input stream

2015-12-29 Thread richard kappler
Sorry it took so long to respond, just getting back from the holidays. You all have given me much to think about. I've read all the messages through once, now I need to go trough them again and try to apply the ideas. I'll be posting other questions as I run into problems. BTW, Danny, best

[Tutor] MemoryError

2015-12-29 Thread Satya Luzy
Hello, I am currently working on a program to find the prime factor of n, in which n is a big integer. Using the Continued Fraction factorization method (I will provide the source code below, please don't mind the variables). It works perfectly when factorizing below 10 digits numbers. In my code

Re: [Tutor] MemoryError

2015-12-29 Thread Steven D'Aprano
On Wed, Dec 30, 2015 at 12:00:02AM +0700, Satya Luzy wrote: > Hello, > I am currently working on a program to find the prime factor of n, in which > n is a big integer. Using the Continued Fraction factorization method (I > will provide the source code below, please don't mind the variables).

[Tutor] OT: How best to use Git for multi-directory projects?

2015-12-29 Thread boB Stepp
I have two situations that I wish to use Git for: 1) Multi-directory Python projects and 2) learning Python from various books which inevitably have suggested exercises to program solutions for. For (1) I might have multiple projects going simultaneously. Say something like: project1/

Re: [Tutor] OT: How best to use Git for multi-directory projects?

2015-12-29 Thread Martin A. Brown
Hello there boB, Hey, wait a second! What time zone are you in? You can't have 2016 resolutions already. Not even the New Zealanders are there yet! >I have two situations that I wish to use Git for: 1) Multi-directory >Python projects and 2) learning Python from various books which