[Tutor] if/else statement

2017-07-18 Thread Shane Johnson (shanejoh)
equal_5(5) print greater_less_equal_5(6) I’m getting a invalid syntax line 2 error. Any assistance is greatly appreciated. [cid:image001.png@01D2FFCA.286FD4E0] Shane Johnson Network Consulting Engineer Cisco Services shane...@cisco.com<mailto:paro...@cisco.com> Phone: +1 770-236-3970 Mobile: +1 404-966

Re: [Tutor] New to Python programing

2012-04-02 Thread Shane Keene
I don't currently use Python 3 and don't recommend that you use it to learn with, mostly because the bulk of the docs and learning resources are Python 2.x focused and the two are not compatible. That said, here are some resources that you may find useful (particularly if you choose to learn using

[Tutor] Fwd: Re: trouble placing code into wxpython

2012-02-01 Thread shane
i was trying to put the math.py into a frame Ive watched many tutorials. But cant seem to find out how to or where to place the code the files I want combined are attached. # import wx app =

[Tutor] trouble placing code into wxpython

2012-02-01 Thread Shane
Do I have to rewrite my code directly into wxpython frame or can i just copy and paste it somehoe ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Random number selection

2012-01-02 Thread shane
I was wondering is there a way to have a variable generate a random integer each time the variable is called. Ive tried random.randint(a, b) and the range one to. It selects a random number and assigns it to the variable this part of the program would be math equations with random number selecti

[Tutor] Efficiency of while versus (x)range

2011-03-16 Thread Shane O'Connor
Hi, First-time poster here. I've a question about loop efficiency - I was wondering whether this code: i = 0 while i < 1000: do something i+=1 is more efficient than: for i in range(1000): do something or: for i in xrange(1000): do something In my mind, the while loop should

Re: [Tutor] Getting confusing NameError

2010-08-18 Thread shane brennan
Espcially thanks for the pointers and information on the difference between raw_input and input. again thanks for everything, and hopefully ill be around here for a long time and once i get a more experienced i can contribute back On Wed, Aug 18, 2010 at 09:37, Alan Gauld wrote: > "shane

[Tutor] Getting confusing NameError

2010-08-18 Thread shane brennan
: name 'secret' is not defined I know this is probably very simple but for some reason i cannot get my head around it. thank you for any help in advance shane ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Recieving emails in python

2008-01-14 Thread Shane Geiger
st = 'foo.com' account = 'jennyjenny' password = '8675309' import getpass, poplib M = poplib.POP3(host) #M.user(getpass.getuser()) #M.pass_(getpass.getpass()) M.user(account) M.pass_(password) numMessages = len(M.list()[1]) for i in range(numMessages): for j in M.ret

[Tutor] (no subject)

2006-06-26 Thread shane davin
Stop the emails??? im getting more than i need regards _ The new MSN Search Toolbar now includes Desktop search! http://join.msn.com/toolbar/overview ___ Tutor maillist - Tutor@python.or

[Tutor] mac users

2006-01-23 Thread Shane Rymer
ows users and the examples in the book dont work for me, for example, print "\a" does not make my macOSX system "beep" any guidance would be great! thanks, Shane ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Associate functinos with Dictionary/Class Usage

2005-04-09 Thread Shane Liebling
Although I was not the questioner, I must admit this was a brief but efficient answer. Reminds me to try something like the last part out some time... -Shane On Apr 7, 2005 4:40 PM, Danny Yoo <[EMAIL PROTECTED]> wrote: > > > On Thu, 7 Apr 2005, Luke Jordan wrote: > >