[Tutor] Installing twisted

2014-11-26 Thread Gary
Hi all, I have been trying to install the zope interface as part of the twisted installation with no luck. Any suggestions ? Sent from my iPad ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.o

[Tutor] Fib sequence code assignment

2014-03-21 Thread Gary
Dear Jerry, Thank you so much, once you see it it seems so clear, but to see it I might as well be in the Indian Ocean. Got kinda close using temporary variable,but didn't know enough to use del. A lesson learn. Sent from my iPad ___ Tutor maillist

[Tutor] (no subject)

2014-03-21 Thread Gary Engstrom
Dear Pythonists   Here is the code   def fiba(n):     a = 0     b = 1     while  a < n :     print(a)     c =  a + b     a = a +c     # 0,1,3,7,15,31,63   def fibc(n):     a = 0   

[Tutor] Understanding code line

2014-03-21 Thread Gary
Pythonists I am trying to understand the difference between a = b b = a + b and a,b = b, a+ b When used in my Fibonacci code the former generates 0,1,2,4,8,16,32 and the later Generates 0,1,1,2,3,5,8,13,21,34,55,89. The second is the sequence I want, but I would Like to understand the secon

Re: [Tutor] Books for Learning Python

2013-01-11 Thread Gary L. Gray
simulations? (2) If the answers to the above questions are generally "yes," where are some good places to get started learning Python to achieve my goals? Thank you. Gary L. Gray ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] new to python

2010-11-18 Thread gary engstrom
Dear Python Tutor, Being new to python I was wondering if there is a way to import exel data into pyrhon matrix/arrays so that I have some data to work with. I know R uses Rcmdr as an easy interface for excel data, which helps keep the reader engaged while learning the language. Thanks G

[Tutor] SetTopWindow

2010-05-19 Thread Gary Koskenmaki
I have what is a noob's confusion about this that will lead to bigger problems for me later on if I don't clear it up. In wxPython what a user normally refers to as a "window" is known as a frame. And what is known in wxPython as a window is an object such as a TextCtrl object. At least that is

[Tutor] application with tabs

2010-05-14 Thread Gary Koskenmaki
Hi, I'm new to any kind of application development, but have done some python scripting. What I'm doing is creating an application for a non-profit social services organization that will allow them to track the services they give their clients. My plan so far was to use tabs for the different

[Tutor] Beginners question

2009-10-08 Thread gary littwin
heses around the lines of code with *(guess !=the_number)* and *(guess* *> the_number)* . I tried to run the program without the parentheses and it runs just fine. So what are the parentheses for?? Thanks a lot for your time - Gary ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Passing command line argument in function

2005-06-14 Thread Gary Taylor
>> >> >> ftp.storbinary(stor file_to_transfer, open(file_to_transfer,"r")) >> > >You need to create the command as a string: >ftp.storbinary("stor " + file_to_transfer, >open(file_to_transfer,"r")) > >Kent That worke

[Tutor] Passing command line argument in function

2005-06-13 Thread Gary Taylor
x. --- #!/usr/bin/python import sys from ftplib import FTP file_to_transfer = sys.argv[1] ftp = FTP() ftp.connect("myserver") ftp.login("myusername", "mypasswd") ftp.storbinary(stor file_to_transfer, open(file_to_transfer,"r")) print file_to