Re: [Tutor] Learning something new.

2019-05-23 Thread Alan Gauld via Tutor
On 23/05/2019 08:38, Jessica Rabbit wrote: > Hello, my name is Jessica and I hope I found the right e mail to help me > learn of to write in code and eventually learn to hack. Hi Jessica and welcome to the tutor list. > know how to do something that my father can. If this email is read by > some

[Tutor] Learning something new.

2019-05-23 Thread Jessica Rabbit
Hello, my name is Jessica and I hope I found the right e mail to help me learn of to write in code and eventually learn to hack. I'm very new to this sode of the internet and would like to slowly learn. I've barely accomplished anything in my life: so i would love to able to know how to do somethi

Re: [Tutor] learning python from scratch

2019-02-07 Thread Alan Gauld via Tutor
On 06/02/2019 21:22, Michael Munn wrote: > dear fellow programmeers, this is michael. I have a question for Python. > I'm a beginner Pythonist. I havee been learning the history and it's use > for past years. My main focus this year is to learn it's code and begin > coding. Can you program in any

[Tutor] learning python from scratch

2019-02-06 Thread Michael Munn
dear fellow programmeers, this is michael. I have a question for Python. I'm a beginner Pythonist. I havee been learning the history and it's use for past years. My main focus this year is to learn it's code and begin coding. Where can I find resource for this? All comment are greatly appreciate i

Re: [Tutor] learning languages

2018-11-22 Thread Mark Lawrence
On 22/11/2018 21:45, Avi Gross wrote: [big snip] Please take this up on some other forum as I see nothing here that relates to the purpose of this list, i.e. teaching Python to beginners. TIA. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our lan

[Tutor] learning languages

2018-11-22 Thread Avi Gross
Steve, I would go a step further. The word "industry" is used by some to mean THEM. I would suggest it is more like US as the younger people of yesteryear age into becoming the employees and even management of the industries involved. When a language like Python has been around long enough so

Re: [Tutor] learning resources

2017-04-04 Thread Alan Gauld via Tutor
On 04/04/17 12:19, brian mituka wrote: > what are the best learning resources for a beginner in python... Look on Python.org and you will find a beginners page with many links. But... it will depend on whether you can already program in another language which beginners page you go to. I am, of co

[Tutor] learning resources

2017-04-04 Thread brian mituka
what are the best learning resources for a beginner in python... I want to be able to write good code in ! month. Thanks.. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tuto

Re: [Tutor] Learning Objectives?

2017-03-01 Thread Alan Gauld via Tutor
On 01/03/17 10:09, Leam Hall wrote: > I see computer science as a science that calls upon our creative nature > to produce excellence. Adding constraints like secure coding and TDD > push us to even greater artistic expression. Lack of constraints gives > us the current standard of non-performa

Re: [Tutor] Learning Objectives?

2017-03-01 Thread Leam Hall
On 02/28/17 05:24, M Hashmi wrote: Coding is an artthat helps you craft beautiful things in digital world. As beginner it's pretty natural to confuse about which learning curve can benefit you most in future. I see computer science as a science that calls upon our creative nature to produ

Re: [Tutor] Learning Objectives?

2017-02-28 Thread Fred Stluka
On 2/27/17 9:57 AM, leam hall wrote: On Mon, Feb 27, 2017 at 9:28 AM, Alan Gauld via Tutor [1] wrote: On 27/02/17 10:44, Leam Hall wrote: Is there a list of Python skill progression, like "Intermediates should know and Advanced should know ?" Trying to map out a well rounded study lis

Re: [Tutor] Learning Objectives?

2017-02-28 Thread M Hashmi
Coding is an artthat helps you craft beautiful things in digital world. As beginner it's pretty natural to confuse about which learning curve can benefit you most in future. If I were you I would go with simple approach. I would choose best of the best software available and start building its

Re: [Tutor] Learning Objectives?

2017-02-28 Thread Leam Hall
On 02/27/17 20:12, Alan Gauld via Tutor wrote: On 27/02/17 14:57, leam hall wrote: I'm not aware of such a list, and I'm not sure it's of much value. Better to just learn what you need and use it. ... When I was coming up as a Linux guy I took the old SAGE guidelines and studied each "level"

Re: [Tutor] Learning Objectives?

2017-02-28 Thread Aaron Myatt via Tutor
Just my humble contribution: I rather appreciated this fellows intermediate python tutorial series: https://youtu.be/YSe9Tu_iNQQ?list=PLQVvvaa0QuDfju7ADVp5W1GF9jVhjbX-_ Though I would argue some other topics, like context managers, would also be worth including in his list. On 28 Feb 2017 9:15 a.

Re: [Tutor] Learning Objectives?

2017-02-27 Thread Alan Gauld via Tutor
On 27/02/17 14:57, leam hall wrote: >> I'm not aware of such a list, and I'm not sure it's of much value. >> Better to just learn what you need and use it. ... > When I was coming up as a Linux guy I took the old SAGE guidelines and > studied each "level" in turn. It was useful for making me a we

Re: [Tutor] Learning Objectives?

2017-02-27 Thread Mats Wichmann
On 02/27/2017 07:57 AM, leam hall wrote: > When I was coming up as a Linux guy I took the old SAGE guidelines and > studied each "level" in turn. It was useful for making me a well-rounded > admin and helped me put off some higher end stuff I wasn't really ready > for. > > Things like Testing and

Re: [Tutor] Learning Objectives?

2017-02-27 Thread leam hall
On Mon, Feb 27, 2017 at 9:28 AM, Alan Gauld via Tutor wrote: > On 27/02/17 10:44, Leam Hall wrote: > > Is there a list of Python skill progression, like "Intermediates should > > know and Advanced should know ?" Trying to map out > > a well rounded study list. > > I'm not aware of such a list, a

Re: [Tutor] Learning Objectives?

2017-02-27 Thread Alan Gauld via Tutor
On 27/02/17 10:44, Leam Hall wrote: > Is there a list of Python skill progression, like "Intermediates should > know and Advanced should know ?" Trying to map out > a well rounded study list. I'm not aware of such a list, and I'm not sure it's of much value. Better to just learn what you need a

[Tutor] Learning Objectives?

2017-02-27 Thread Leam Hall
Is there a list of Python skill progression, like "Intermediates should know and Advanced should know ?" Trying to map out a well rounded study list. Thanks! Leam ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] learning path for python

2016-07-16 Thread Alan Gauld via Tutor
On 16/07/16 12:31, rahul sijwali wrote: > i started learning python previous week using "Automate the Boring > Stuff with Python" i am totally new to programming but had no problem > completing the first part now i am off second part which actually > involves "automating stuff" > > now i saw it in

[Tutor] learning path for python

2016-07-16 Thread rahul sijwali
i started learning python previous week using "Automate the Boring Stuff with Python" i am totally new to programming but had no problem completing the first part now i am off second part which actually involves "automating stuff" now i saw it involves "web scrapping" i want to learn more of it an

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread Terry--gmail
Thanks Alan I noticed that I was using some double ' to encircle some things and some single ' for apostrophes in contractionsand fixed those...but apparently since you could run it, that part didn't matter. The problem was ultimately caused by a stray ''' which was a fragment of me messin

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread dirkjso...@gmail.com
Thanks Bob, OK. The escape character \ still is active in escaping the next character or space when inside of triple quotes. So, I guess when the program is running, since I am not printing these things out, I don't care if anything in my notes is escaped unless it is a strategic single o

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread Alan Gauld via Tutor
On 30/05/16 18:21, dirkjso...@gmail.com wrote: > I moved my notes that contained any '\'s to a different python file. > However, if we run it, we get the error I was having. Here's the > script: Runs fine for me. Can you run it using the python command line interpreter rather than IDLE? Do you s

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread boB Stepp
On Mon, May 30, 2016 at 12:13 PM, dirkjso...@gmail.com wrote: > Hi bob, > > I had used the wrong email address when I wrote to python tutor on this, and > evidently it > took a while for the monitors to let it go ahead and be entered in the list, > so I apologize > for the delay in my reply. That

Re: [Tutor] Learning Regular Expressions

2016-05-30 Thread dirkjso...@gmail.com
On 05/24/2016 01:48 PM, Alan Gauld via Tutor wrote: On 23/05/16 23:08, Terry--gmail wrote: scripted worked great without the notes! I'd like to know what it is in the below Tripple-Quoted section that is causing me this problem...if anyone recognizes. In IDLE's script file..._it's all colored

Re: [Tutor] Learning Regular Expressions

2016-05-24 Thread Alan Gauld via Tutor
On 23/05/16 23:08, Terry--gmail wrote: > scripted worked great without the notes! I'd like to know what it is in > the below Tripple-Quoted section that is causing me this problem...if > anyone recognizes. In IDLE's script file..._it's all colored green_, > which I thought meant Python was goi

Re: [Tutor] Learning Regular Expressions

2016-05-24 Thread boB Stepp
On Mon, May 23, 2016 at 5:08 PM, Terry--gmail wrote: > Running Linux Mint > The YouTube Sentdex Video tutor I am following. > He is working in Python3.4 and I am running Python3.4.3 > > He's demonstrating some Regular Expressions which I wanted to test out. On > these test scripts, for future refe

[Tutor] Learning Regular Expressions

2016-05-24 Thread Terry--gmail
Running Linux Mint The YouTube Sentdex Video tutor I am following. He is working in Python3.4 and I am running Python3.4.3 He's demonstrating some Regular Expressions which I wanted to test out. On these test scripts, for future referrence, I have been putting my notes in Tripple Quotes and nam

Re: [Tutor] Learning class code and function (Alan Gauld)

2015-01-21 Thread jarod...@libero.it
>I'd also question why you seem to have a function that has the class >name in its name? Should that function not be a method of the class? >Or is it part of some third party library perhaps? Thanks for the clarification!! Could you please make an example of this two condition I still try to devo

Re: [Tutor] Learning class code and function

2015-01-20 Thread Albert-Jan Roskam
- On Tue, Jan 20, 2015 4:44 PM CET Alan Gauld wrote: >On 20/01/15 12:04, jarod...@libero.it wrote: >> Dear all, I continue to try to understand some code: >> class Tutto(): I think you need a new-style class wit property. "Return a property attribute for new-style cl

Re: [Tutor] Learning class code and function

2015-01-20 Thread Alan Gauld
On 20/01/15 12:04, jarod...@libero.it wrote: Dear all, I continue to try to understand some code: class Tutto(): def __init__(self): print "Ok" #@property def readsets(self,nome): self.nome = nome self._readsets = parse_tutto_readset_file(self.nome)

[Tutor] Learning class code and function

2015-01-20 Thread jarod...@libero.it
Dear all, I continue to try to understand some code: class Tutto(): def __init__(self): print "Ok" #@property def readsets(self,nome): self.nome = nome self._readsets = parse_tutto_readset_file(self.nome) return self._readsets Why If uncomment the decora

Re: [Tutor] Learning python scripts for practical linux activities.

2015-01-15 Thread Emile van Sebille
On 1/15/2015 6:07 AM, dw wrote: Hello, I'm new the the group and new to programming in Python. I would like to find a source, book etc of Python learning projects. Projects that are useful for standard Linux activities like bulk renaming files, managing repository packages. Maybe python scrip

Re: [Tutor] Learning python scripts for practical linux activities.

2015-01-15 Thread Alan Gauld
On 15/01/15 14:07, dw wrote: I would like to find a source, book etc of Python learning projects. Projects that are useful for standard Linux activities like bulk renaming files, managing repository packages. Maybe python scripts that incorporate "LAME" for modifying audio files. Anything of

[Tutor] Learning python scripts for practical linux activities.

2015-01-15 Thread dw
Hello, I'm new the the group and new to programming in Python. I would like to find a source, book etc of Python learning projects. Projects that are useful for standard Linux activities like bulk renaming files, managing repository packages. Maybe python scripts that incorporate "LAME" for mod

Re: [Tutor] Learning to program, not code.

2014-12-21 Thread Alan Gauld
On 21/12/14 09:21, Albert-Jan Roskam wrote: Don't postpone writing unittests (don't use doctest). But do wait till you know what you will be testing. You can't write a unit test until you have a unit in mind. The OP seems to be struggling to figure out what units he needs. Once he has done tha

Re: [Tutor] Learning to program, not code.

2014-12-21 Thread Adam Jensen
On Sun, 21 Dec 2014 21:15:43 +1100 Ben Finney wrote: > Use a distributed version control system > (Mercurial is good and is written in Python) I'm beginning to really appreciate [fossil](http://fossil-scm.org/). Re: "Learning to program, not code". Is that like learning to think rather than

Re: [Tutor] Learning to program, not code.

2014-12-21 Thread Ben Finney
Albert-Jan Roskam writes: > Don't postpone writing unittests (don't use doctest). They really give > you focus and confidence (peace of mind!). Excellent advice. Write unit tests as a way of documenting what you want the function to do, and also to document what the function did wrong in that bu

Re: [Tutor] Learning to program, not code.

2014-12-21 Thread Albert-Jan Roskam
On Sun, Dec 21, 2014 3:30 AM CET Dave Angel wrote: >On 12/20/2014 08:16 PM, Brandon Dorsey wrote: >> >> I'm 28 years old, currently unemployed and not in school until fall of >> 2015 as a junior. I picked up python a little under a year ago, with the >> hopes that I

Re: [Tutor] Learning to program, not code.

2014-12-21 Thread Brandon Dorsey
> > I'm 28 years old, currently unemployed and not in school until fall of > 2015 as a junior. I picked up python a little under a year ago, with the > hopes that I could make a career out of programming - when I finish school > that is. So, as of right now you could say it's a hobby, however, I

Re: [Tutor] Learning to program, not code.

2014-12-20 Thread Dave Angel
On 12/20/2014 08:16 PM, Brandon Dorsey wrote: I'm 28 years old, currently unemployed and not in school until fall of 2015 as a junior. I picked up python a little under a year ago, with the hopes that I could make a career out of programming - when I finish school that is. So, as of right now

Re: [Tutor] Learning to program, not code. [LONG RESPONSE!]

2014-12-19 Thread boB Stepp
On Thu, Dec 18, 2014 at 8:09 PM, Brandon Dorsey wrote: > > Hello All, > > Programming has always been a passion of mine, however, I'm frequently > frustrated at > > simple fact that I've been learning python for 8 months, and I have yet to > start, and finish, a simple > > project. I find difficu

Re: [Tutor] Learning to program, not code.

2014-12-19 Thread Dave Angel
On 12/18/2014 09:09 PM, Brandon Dorsey wrote: Hello All, Programming has always been a passion of mine, A great start. Can you tell us a little more about yourself? Is Python the first language you've tried, or are you successful at other languages? Are you in school, at what level, do yo

Re: [Tutor] Learning to program, not code.

2014-12-19 Thread Alan Gauld
On 19/12/14 09:38, Sarika Shrivastava wrote: I am also facing write a code in python please help me for this i read all concepts of python but whem i will started this i am facing lot of problems . Feel free to ask questions here. But please be specific. We need to know what kind

Re: [Tutor] Learning to program, not code.

2014-12-19 Thread Alan Gauld
On 19/12/14 02:09, Brandon Dorsey wrote: simple fact that I've been learning python for 8 months, and I have yet to start, and finish, a simple project. That's a pity because the detail involved in completing a project is often where you learn most. Maybe you should take time out from "learni

Re: [Tutor] Learning to program, not code.

2014-12-19 Thread Sarika Shrivastava
Hello All I am also facing write a code in python please help me for this i read all concepts of python but whem i will started this i am facing lot of problems . -- Forwarded message -- From: Brandon Dorsey Date: Fri, Dec 19, 2014 at 7:39 AM Subject: [Tutor

[Tutor] Learning to program, not code.

2014-12-19 Thread Brandon Dorsey
Hello All, Programming has always been a passion of mine, however, I'm frequently frustrated at simple fact that I've been learning python for 8 months, and I have yet to start, and finish, a simple project. I find difficult to not only visualize the execution, but to figure out when and where

Re: [Tutor] learning to programming questions part 2

2014-07-01 Thread Alan Gauld
On 01/07/14 20:39, keith papa wrote: read both chapters 1 and 2 about string and variables and keywords., so I decide to look online for some practice to help me and I found something on http://www.pyschools.com/ 1.Write the function countA(word) that takes in a word as argument and returns th

[Tutor] learning to programming questions part 2

2014-07-01 Thread keith papa
Hi am leaning to program in python with the book "think python" I have read both chapters 1 and 2 about string and variables and keywords., so I decide to look online for some practice to help me and I found something on http://www.pyschools.com/ 1.Write the function countA(word) that takes

Re: [Tutor] learning to programming questions part 1

2014-06-24 Thread Alan Gauld
On 25/06/14 00:23, keith papa wrote: 1. Hi am new to python and I have a few questions: Why if you want to write multiple comment you use triple quotation marks and not the #? These are technically not the same as comments, they are documentation strings. The Python help system will find and

Re: [Tutor] learning to programming questions part 1

2014-06-24 Thread Danny Yoo
> In certain places, string literals are treated as documentation that you can access with the help() function. Triple quotes are a way of writing a strong literal. Sorry! "strong" should be "string". ___ Tutor maillist - Tutor@python.org To unsubscr

Re: [Tutor] learning to programming questions part 1

2014-06-24 Thread Danny Yoo
On Jun 24, 2014 4:55 PM, "keith papa" wrote: > > 1. Hi am new to python and I have a few questions: > Why if you want to write multiple comment you use triple quotation marks and not the #? > In certain places, string literals are treated as documentation that you can access with the help() funct

[Tutor] learning to programming questions part 1

2014-06-24 Thread keith papa
1. Hi am new to python and I have a few questions: Why if you want to write multiple comment you use triple quotation marks and not the #? 2. I found this code to be interesting to me because it printed an output of [1,2,3,4,5,6,7] and not [1,2,3,4:4,5,6,7] why is that? Insert two or more element

Re: [Tutor] Learning

2014-04-25 Thread Dave Angel
Leo Nardo Wrote in message: > I want to program. I enjoy programming and am willing to put in time > to do this.When I try to get started with programming I realize how > difficult it is to find the information worthy of learning. > I would like to write the > program in python, and I do not nee

Re: [Tutor] Learning

2014-04-25 Thread Alan Gauld
On 25/04/14 12:00, Leo Nardo wrote: What i think would be helpful is an outline of all tactics and stuff I need to learn to complete a certain task that i am interested in. That's true provided the task is not too complicated to start with... This task is to write a very basic botting progra

[Tutor] Learning

2014-04-25 Thread Leo Nardo
I want to program. I enjoy programming and am willing to put in time to do this.When I try to get started with programming I realize how difficult it is to find the information worthy of learning. Programming is broad and the possibilities are endless, as well as the ammount of learning material. I

[Tutor] Learning about programming

2014-02-10 Thread Danny Yoo
On Sun, Feb 9, 2014 at 3:38 AM, abhinav raj kp nirmallur wrote: > Sir I don't know nothing about programming but I have a great intrest > in it so that now a days I began to study python, many of my friends > and teachers suggest me it. But still I have no tutor, can you please > suggest me to st

Re: [Tutor] learning recursion

2014-02-10 Thread Russel Winder
On Sun, 2014-02-09 at 13:56 -0500, Dave Angel wrote: […] > Not as bad as attributing that code to me. Apologies for that implication, bad editing on my part, I should have retained the link to the author. -- Russel. = Dr

Re: [Tutor] learning recursion

2014-02-09 Thread Dave Angel
Russel Winder Wrote in message: > On Thu, 2014-02-06 at 18:06 -0500, Dave Angel wrote: > […] >> >> Code: >> def fib2(n): >> if n==1: >> return 1 >> >> elif n==2: >> return 1 >> else: >> return fib2(n-2) +fib2(n-1) > […] > > I suggest it

Re: [Tutor] learning recursion

2014-02-09 Thread Russel Winder
On Thu, 2014-02-06 at 18:06 -0500, Dave Angel wrote: […] > > Code: > def fib2(n): > if n==1: > return 1 > > elif n==2: > return 1 > else: > return fib2(n-2) +fib2(n-1) […] I suggest it also be pointed out that this form is algorithmical

Re: [Tutor] learning recursion

2014-02-08 Thread Mark Lawrence
On 08/02/2014 10:06, rakesh sharma wrote: Please do not top post on this list. I got my definition wrong the code should be more like this def fib(n): if n==0: return What does the above line return? As others have already said what happens if n is negative? elif n==1: return 1 elif n=

Re: [Tutor] learning recursion

2014-02-08 Thread rakesh sharma
ubject: Re: [Tutor] learning recursion > From: denis.heidtm...@gmail.com > To: rakeshsharm...@hotmail.com > CC: da...@davea.name; tutor@python.org > > On Fri, Feb 7, 2014 at 9:05 PM, rakesh sharma > wrote: > > Hi > > > > Shouldn't your code be like thi

Re: [Tutor] learning recursion

2014-02-08 Thread rakesh sharma
Hi I guess I need to revisit my maths lessons.Thank you for correcting me. thanks,rakesh > From: d...@hashcollision.org > Date: Sat, 8 Feb 2014 00:20:19 -0800 > Subject: Re: [Tutor] learning recursion > To: rakeshsharm...@hotmail.com > CC: da...@davea.name; tutor@python.org >

Re: [Tutor] learning recursion

2014-02-08 Thread Danny Yoo
On Fri, Feb 7, 2014 at 9:05 PM, rakesh sharma wrote: > Hi > > Shouldn't your code be like this > > def fib(n): > if n==0: > return 0 > else: > return n + fib(n-1) Hi Rakesh, Unfortunately, no, because this computes a slightly different function: the triangular numbers! :P That is, your funct

Re: [Tutor] learning recursion

2014-02-07 Thread Denis Heidtmann
On Fri, Feb 7, 2014 at 9:05 PM, rakesh sharma wrote: > Hi > > Shouldn't your code be like this > > def fib(n): > if n==0: > return 0 > else: > return n + fib(n-1) > > this works > for i in range(4): > print fib(i) > > 0 > 1 > 3 > 6 interesting, but the Fibonacci sequence is 1,1,2,3,5,8,

Re: [Tutor] learning recursion

2014-02-07 Thread rakesh sharma
014 18:06:41 -0500 > Subject: Re: [Tutor] learning recursion > > Denis Heidtmann Wrote in message: > > > > > Please post in text, not html. Your posting program loses the > indentation in the text view, which is what most people > see. > > Code: > def

Re: [Tutor] learning recursion

2014-02-06 Thread Dave Angel
Denis Heidtmann Wrote in message: > > Please post in text, not html. Your posting program loses the indentation in the text view, which is what most people see. Code: def fib2(n): if n==1: return 1 elif n==2: return 1 else:

Re: [Tutor] learning recursion

2014-02-06 Thread Devin Jeanpierre
On Thu, Feb 6, 2014 at 11:28 AM, Denis Heidtmann wrote: for i in range(4): > ... print fib2(i) > ... > > The above results in an error: Because fib2(0) recurses infinitely, and i's first value is 0. -- Devin ___ Tutor maillist - Tutor@python

Re: [Tutor] learning recursion

2014-02-06 Thread Danny Yoo
Ah. Consider what range(4) looks like. It's similar to the sequence: [0, 1, 2, 3] What happens when you do fib2(0)? :P Here's your program (modified with a correction) on repl.it, for convenience: http://repl.it/O30 ___ Tutor maillist -

Re: [Tutor] learning recursion

2014-02-06 Thread Neil Cerutti
On 2014-02-06, Denis Heidtmann wrote: > Running python 2.7 on Ubuntu 12.04 > > Code: > def fib2(n): > if n==1: > return 1 > elif n==2: > return 1 > else: > return fib2(n-2) +fib2(n-1) Something ate your leading spaces. Keep in mind that that makes most Python code unrecoverably corrupt. When shar

Re: [Tutor] learning recursion

2014-02-06 Thread Peter Otten
Denis Heidtmann wrote: > Running python 2.7 on Ubuntu 12.04 > > Code: > def fib2(n): > if n==1: > return 1 > elif n==2: > return 1 > else: > return fib2(n-2) +fib2(n-1) > > The above works: > fib2(7) > 13 fib2(4) > 3 > for i in range(4): > ... print fib2(i) > ... > > The ab

[Tutor] learning recursion

2014-02-06 Thread Denis Heidtmann
Running python 2.7 on Ubuntu 12.04 Code: def fib2(n): if n==1: return 1 elif n==2: return 1 else: return fib2(n-2) +fib2(n-1) The above works: >>> fib2(7) 13 >>> fib2(4) 3 >>> for i in range(4): ... print fib2(i) ... The above results in an error: Traceback (most recent call last): File

Re: [Tutor] learning nested functions

2013-07-10 Thread Alan Gauld
On 08/07/13 07:26, Tim Hanson wrote: In the first Lutz book, I am learning about nested functions. def f1(): x=88 def f2(): print(x) x=99 print(x) f2() f1() Traceback (most recent call last): print(x) Un

Re: [Tutor] learning nested functions

2013-07-10 Thread Dave Angel
On 07/08/2013 02:26 AM, Tim Hanson wrote: In the first Lutz book, I am learning about nested functions. Here's the book's example demonstrating global scope: def f1(): x=88 def f2(): print(x) f2() f1() 88 But that's not global scope, it's

Re: [Tutor] learning nested functions

2013-07-10 Thread Hugo Arts
On Mon, Jul 8, 2013 at 8:26 AM, Tim Hanson wrote: > In the first Lutz book, I am learning about nested functions. > > Here's the book's example demonstrating global scope: > >>> def f1(): > x=88 > def f2(): > print(x) > f2() > > > >>> f1() > 88 > > No prob

[Tutor] Learning Python with Programming Collective Intelligence

2013-07-10 Thread bluepresley
Hello, I discovered this list while doing research about the book Programming Collective Intelligence by Toby Segaran. In the archives, a few of the members wanted to create a group to discuss the code and algorithms further. Those threads were a few years old, and unfortunately I'm just now disco

Re: [Tutor] learning to program in cython

2013-01-17 Thread Oscar Benjamin
On 17 January 2013 11:52, Albert-Jan Roskam wrote: > > I recently used Cython for the first time and I found it surprisingly easy. > The installation under Linux > is easy, but seems to be not really trivial under Windows (I never tried > installing it under windows though; I'd first try one of

Re: [Tutor] learning to program in cython

2013-01-17 Thread Albert-Jan Roskam
>> With the help of an awesome python community I have been able to pick up the >> language and now willing to explore other cool extensions of it. > >Good work! > >> >> I routinely have large loops which could be ported to cython for speed. >> However I have never written a single line of cython

Re: [Tutor] learning to program in cython

2013-01-16 Thread Oscar Benjamin
On 16 January 2013 21:54, Abhishek Pratap wrote: > Hi Guys > > With the help of an awesome python community I have been able to pick up the > language and now willing to explore other cool extensions of it. Good work! > > I routinely have large loops which could be ported to cython for speed. >

[Tutor] learning to program in cython

2013-01-16 Thread Abhishek Pratap
Hi Guys With the help of an awesome python community I have been able to pick up the language and now willing to explore other cool extensions of it. I routinely have large loops which could be ported to cython for speed. However I have never written a single line of cython code. Any pointers on

Re: [Tutor] Learning Python through automating web application testing.

2012-12-15 Thread wrw
On Dec 7, 2012, at 5:46 PM, marcusw4...@hotmail.co.uk wrote: > Hello all, > > I'm new to posting on mailing lists so hopefully I've picked the correct one > for my question(s). > > A little about my programming experience first. > [byte] > Because of this fear I've never admitted I've got

[Tutor] Learning Python through automating web application testing.

2012-12-14 Thread marcusw4...@hotmail.co.uk
Hello all, I'm new to posting on mailing lists so hopefully I've picked the correct one for my question(s). A little about my programming experience first. I work as a 'black box' software tester on a website/application so am familiar with the IT development process but when it comes to program

Re: [Tutor] learning how to convert script to python

2011-06-27 Thread Alan Gauld
"Jim Syyap" wrote The project has been discontinued and I would like to convert it to python, then use it. Can you tell me what language this is--lisp or autohotkey? No idea what autohotkey looks like but it certainly is NOT Lisp. What do I need to learn so I can convert these? Python a

[Tutor] learning how to convert script to python

2011-06-27 Thread Jim Syyap
I am learning python at the moment--this is something I would like to work on/convert. It's a poker application that opens a table for you every x-minutes. The project has been discontinued and I would like to convert it to python, then use it. Can you tell me what language this is--lisp or autoho

[Tutor] Learning with Open Source Applications.

2010-10-18 Thread Jorge Biquez
Hello all. I am sorry for the cross posting but I really would like to hear comments from experience people in Python. I am new to Python, not new in programming. I am leaving the PHP path and moving to Python. When I was learning PHP it was very useful to learn to install OpenSource solutio

Re: [Tutor] Learning Python ...Books

2010-08-13 Thread Wayne Werner
On Fri, Aug 13, 2010 at 5:22 AM, Stephen Farthing wrote: > Hi everyone, > > I am going to learn both Python and Ruby so I can see what suits me best. > My ultimate aim is to do some open source cross platform development for my > ham radio and robotics hobbies. One of the key requirements is to be

Re: [Tutor] Learning Python ...Books

2010-08-13 Thread Bill Allen
On Fri, Aug 13, 2010 at 7:29 AM, Bill Allen wrote: > > > There are several books out there, some for Python 2.x, some for Python > 3.x. None that are quite like K&R in my opinion. > However, here are some resources that may be useful for you, web based but > some providing PDF download so you c

[Tutor] Learning Python ...Books

2010-08-13 Thread Bill Allen
On Fri, Aug 13, 2010 at 5:22 AM, Stephen Farthing wrote: > > What I was wondering is if there is a Python equivalent to "The C > Programming language" by Kernighan and Richie which is the best text on > programming i have ever read. > > Thanks in advance, > > Steve > Steve, There are several boo

Re: [Tutor] Learning Python ...Books

2010-08-13 Thread Joel Goldstick
I like "Learning Python" (O'reilly) Its thicker, but excellent. There isn't really an equivalent to K & R. But, you should go to python.org and read the docs. They are very good On Fri, Aug 13, 2010 at 6:22 AM, Stephen Farthing wrote: > Hi everyone, > > I am going to learn both Python and Ruby

[Tutor] Learning Python ...Books

2010-08-13 Thread Stephen Farthing
Hi everyone, I am going to learn both Python and Ruby so I can see what suits me best. My ultimate aim is to do some open source cross platform development for my ham radio and robotics hobbies. One of the key requirements is to be able to control hardware, via USB, using a GUI. I am an old scho

Re: [Tutor] Learning python using Michael Dawson's book

2010-05-17 Thread Steven D'Aprano
On Mon, 17 May 2010 11:08:38 pm Peter wrote: > Hello, > I am at the very beginning of learning Python. If anyone is familiar > with Michael Dawson's book: "Python Programming for the Absolute > Beginner" The following script (according to the book) should create > "block lettering" created by dashe

Re: [Tutor] Learning python using Michael Dawson's book

2010-05-17 Thread Luke Paireepinart
I don't see any printing of dashes whatsoever. can you explain in more detail what output you're getting, how it's different from what you expected, and why you think that happened? On 5/17/10, Peter wrote: > Hello, > I am at the very beginning of learning Python. If anyone is familiar > with Mic

[Tutor] Learning python using Michael Dawson's book

2010-05-17 Thread Peter
Hello, I am at the very beginning of learning Python. If anyone is familiar with Michael Dawson's book: "Python Programming for the Absolute Beginner" The following script (according to the book) should create "block lettering" created by dashes and vertical lines. If I could show a picture of

Re: [Tutor] Learning Python

2009-12-13 Thread David
Hi, Kent Johnson wrote: > Python in a Nutshell is good if you want a compressed but readable > introduction. I am thinking of buying this one, but the topical 2nd edition is from 2006. Does anyone know if a new version, covering Python 3, is coming to market soonish? David

Re: [Tutor] Learning Python

2009-12-13 Thread Emile van Sebille
On 12/13/2009 4:36 AM Grigor Kolev said... Your __init__ looks OK. All the other methods return either self.list or (with sort and append) return None because you've reassigned self.list to the return value of self.list.sort() and self.list.append()(both sort and append methods change the ob

Re: [Tutor] Learning Python

2009-12-13 Thread Alan Gauld
"Grigor Kolev" wrote My answer is: class MyList (): def __init__(self, value=[]): self.list=[] for i in value: self.list.append(i) def __add__(self , other): return self.list def __mul__(self , other): return self .list def __delitem__(self ,

[Tutor] Learning Python

2009-12-13 Thread Grigor Kolev
It is from book Learning Python Operator overloading. Write a class called Mylist that shadows (“wraps”) a Python list: it should overload most list operators and operations, including +, indexing, iteration, slicing, and list methods such as append and

Re: [Tutor] learning new features of python

2009-02-26 Thread spir
Le Thu, 26 Feb 2009 18:16:59 + (GMT), ALAN GAULD s'exprima ainsi: > > > >> Similaraly in Alan Guald Learn to program link, he has given > > >> information on opening a file with file() and open() functions. > > > > > > And in V3 they took that back out again :-( > > > > ?? open() is in V3.

Re: [Tutor] learning new features of python

2009-02-26 Thread ALAN GAULD
> >> Similaraly in Alan Guald Learn to program link, he has given information > >> on opening a file with file() and open() functions. > > > > And in V3 they took that back out again :-( > > ?? open() is in V3. file() is not. That's right, they have reverted to how it was in Python 1.X I changed

  1   2   >