Re: [Tutor] the big o

2015-07-28 Thread Joseph Lee
Hi Stephanie, I'm wondering which courses you were introduced to Python and which book you are using. I do understand how it might be difficult to understand this concept, especially for someone who is a complete novice to algorithm analysis where Big O shows up. I'll answer you inline. -Origi

Re: [Tutor] threading in python 2.7 - 2nd version

2015-01-05 Thread Joseph Lee
Hi, My answers are below. -Original Message- From: Tutor [mailto:tutor-bounces+joseph.lee22590=gmail@python.org] On Behalf Of Rance Hall Sent: Sunday, January 4, 2015 9:20 PM To: tutor Subject: [Tutor] threading in python 2.7 - 2nd version Thanks to the advice from Joseph and Alan, I

Re: [Tutor] threading in python2.7

2015-01-02 Thread Joseph Lee
Hi, Answers are below. -Original Message- From: Tutor [mailto:tutor-bounces+joseph.lee22590=gmail@python.org] On Behalf Of Rance Hall Sent: Friday, January 2, 2015 12:17 PM To: tutor Subject: [Tutor] threading in python2.7 Each of the lights and sound functions are placed in a "while

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

2014-12-19 Thread Joseph Lee
Oops, sent it to the original poster only. -Original Message- From: Joseph Lee [mailto:joseph.lee22...@gmail.com] Sent: Friday, December 19, 2014 1:43 AM To: 'Brandon Dorsey' Subject: RE: [Tutor] Learning to program, not code. Hi Brandon, Answers are below. -Origin

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-15 Thread Joseph Lee
Hi Terry (if that's your name), Start slow - don't think ahead too much. It is a good thing that you know the end product, but sometimes when building a real-life system, you might want to work with one aspect of the program at a time (input, calculations, print, etc.) to make sure it works a

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-15 Thread Joseph Lee
Hi, My thoughts are in the message: - Original Message - From: Terry--gmail Subject: [Tutor] Building Starships -- object of type 'int' has no len() Python 3.3 This has something to do with the nature of FOR statements and IF statements, and I am sure it must be a simple mistake...b

Re: [Tutor] Exercise to work on

2014-08-13 Thread Joseph Lee
Hi Keith, It depends on what you want to do with Python in the end (by the way, if statement is not a function). Here are some of my suggestions (based on current topics and things to come later): 1. Write a loop which prints even numbers from 1 to 100. 2. Write a program which determines

Re: [Tutor] Exercise to work on

2014-08-13 Thread Joseph Lee
Hi Keith, As a follow-up: I'm sure others might have mentioned this, but I also recommend doing exercises presented in the book or reference you're using to learn Python. Cheers, Joseph - Original Message - From: keith papa Hi, am a newbie to python and I wondering if you guys can give

Re: [Tutor] Is this possible for a newbie?

2014-07-21 Thread Joseph Lee
Hi, Answers are below. - Original Message - From: keith papa Am a newbie to programming and I started learning python days ago. I have this idea I want to execute, am a big sport and fantasy fan and I wanted to create something that will make it things a little easy for me. My idea

Re: [Tutor] Python 2 Vs python 3

2014-07-13 Thread Joseph Lee
Hi, Answers are below. From: Tutor [mailto:tutor-bounces+joseph.lee22590=gmail@python.org] On Behalf Of idiallo.s...@gmail.com Sent: Sunday, July 13, 2014 9:16 AM To: Python Tutor Mailing List Subject: [Tutor] Python 2 Vs python 3 I am in the process to dive into python and start lear

Re: [Tutor] While loop issue, variable not equal to var or var

2014-07-12 Thread Joseph Lee
Hi Steve, In your conditionals: … while message != 'q' or 'Q'/message != “q” or message != “Q”: … Python will only match the first variable. A better approach (which might be a good solution) would be capturing the exit commands in a list like this: JL’s code: while message not in [“q”, “Q”]

Re: [Tutor] Anti-Patterns in Python Programming

2014-07-11 Thread Joseph Lee
Hi Deb and others, Most are for people coming from different languages like C/C++, Java and so on (I myself am coming from C++ world, and can speak both C++ and Python). Unless if you're working on specific things, don't worry about some of the concepts until later (e.g. if you're working on variab

Re: [Tutor] Anti-Patterns in Python Programming

2014-07-11 Thread Joseph Lee
Hi Deb and others, Answers are below. -Original Message- From: Deb Wyatt [mailto:codemon...@inbox.com] Sent: Friday, July 11, 2014 9:51 PM To: Joseph Lee; tutor@python.org Subject: RE: [Tutor] Anti-Patterns in Python Programming Thank you for answering. I used to be a Clipper/dBase