Re: [Tutor] exercise

2012-12-14 Thread Matthew Ngaha
> return {e for (e, g) in self.sort_email.items() > if g & groups_list} > guys i think ive got it. The & in that comprehension was really confusing me, but i found out it means intersection, so i took the sets manually and saw the results i got using intersection and it became more

Re: [Tutor] Clearing Python text

2012-12-14 Thread Mike G
I use Windows XP, Python 2.7, Notepad++ as my editor, and generally run my .py files from cmd, this is how I toggle between running my .py file after an edit (and save) and subsequently clearing the screen - it's pretty easy. I "arrow-up/arrow-down" on the keyboard to reprint (type) the latest com

Re: [Tutor] Help please!

2012-12-14 Thread Steven D'Aprano
On 02/12/12 12:37, Jack Little wrote: Hi Tutor, I'm getting this error Traceback (most recent call last): File "C:\Users\Jack\Desktop\python\g.py", line 45, in path_1pt1() NameError: name 'path_1pt1' is not defined Names need to be defined before they are used. Code needs to be indented to b

Re: [Tutor] Information

2012-12-14 Thread Prasad, Ramit
Umair Masood wrote: > > How to create a server in python using SOAP? Please also tell the ports to be > used. Kindly help me out. > > Regards, > Umair The 4th link looks good: http://lmgtfy.com/?q=How+to+create+a+server+in+python+using+SOAP%3F+# First link: http://lmgtfy.com/?q=What+ports+are+

[Tutor] Thanks

2012-12-14 Thread
I just want to thank all who gave some input into my questions. And the points on convention ,hey I just learned about plain text! Thanks Mike Michael Waters Business Unit Information Technology Global Data Center Data Center Services Team GDC 24/7 HotLine # 800-267-3471 McNeil Consumer Heathc

Re: [Tutor] First semester no coding experince, please help!

2012-12-14 Thread Prasad, Ramit
Mark Rourke wrote: > Sent: Monday, December 03, 2012 9:24 AM > To: tutor@python.org > Subject: [Tutor] First semester no coding experince, please help! > > Hello, the following attachment  (no virus I swear!)is an assignment I have > for my programming class, I am > having alot of difficulty comp

Re: [Tutor] Which version of activetcl to use for Mac OS X 10.7?

2012-12-14 Thread Prasad, Ramit
Yi Molina wrote: > > Hi, all. I am new to python and just installed Python 2.7.3 on my Mac OS X > 10.7.5 from python.org. I read that I > am supposed to use  ActiveTcl 8.5.11.1. So I clicked on the link on but found > only ActiveTcl8.5.11.1.295590- > macosx10.5-i386-x86_64-threaded.dmg, Which is

Re: [Tutor] Help please!

2012-12-14 Thread Kwpolska
On Sun, Dec 2, 2012 at 2:37 AM, Jack Little wrote: > Hi Tutor, > I'm getting this error > > Traceback (most recent call last): File "C:\Users\Jack\Desktop\python\g.py", > line 45, in path_1pt1() NameError: name 'path_1pt1' is not defined > > With the attached file > > Please get back to me > Than

Re: [Tutor] College student having python problems

2012-12-14 Thread Alan Gauld
On 06/12/12 23:43, Mark Rourke wrote: def showMenu(): #THIS IS ALL PART OF SHOWMENU: #keep getting items for this order until the user wants to end the order #set initial quantities of items numBurgers=20; numFries=20; numSodas=20; menuItem = s

Re: [Tutor] New Re: Clearing Python text

2012-12-14 Thread Alan Gauld
On 14/12/12 15:25, Waters, Mike [ITSCA Non-J&J] wrote: To state my challenge : When I have filled a page with values and text until it reaches the bottom of the screen, how can I highlight this and remove to allow further entries? I have seen John Guttag do this but he seems to be using a MAC.

[Tutor] Information

2012-12-14 Thread Umair Masood
How to create a server in python using SOAP? Please also tell the ports to be used. Kindly help me out. Regards,Umair ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.

[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

[Tutor] Which version of activetcl to use for Mac OS X 10.7?

2012-12-14 Thread Yi Molina
Hi, all. I am new to python and just installed Python 2.7.3 on my Mac OS X 10.7.5 from python.org. I read that I am supposed to use ActiveTcl 8.5.11.1. So I clicked on the link on but found only ActiveTcl8.5.11.1.295590-macosx10.5-i386-x86_64-threaded.dmg, Which is for MAC OS X 10.5. I could n

[Tutor] College student having python problems

2012-12-14 Thread Mark Rourke
The Following is my code: #Mark Rourke, Mitch Lavalle #Dec 04, 2012 #Global Constants #Constant Integer MAX_QTY MAX_QTY = 20 #Constant Real TAX_RATE TAX_RATE = .13 #Constant Real Burger Burger = .99 #Constant Real Fries Fries = .79 #Constant Real Soda Soda = 1.09 import sys def getOrderNumber():

[Tutor] First semester no coding experince, please help!

2012-12-14 Thread Mark Rourke
Hello, the following attachment (no virus I swear!)is an assignment I have for my programming class, I am having alot of difficulty completing this assignment, my teacher does not do a very good job of explaining this project to me, I desperately need some help/guidance/direction with this, pl

[Tutor] Help please!

2012-12-14 Thread Jack Little
Hi Tutor, I'm getting this error Traceback (most recent call last): File "C:\Users\Jack\Desktop\python\g.py", line 45, in path_1pt1() NameError: name 'path_1pt1' is not defined With the attached file Please get back to me Thank you g.py Description: Binary data ___

Re: [Tutor] New Re: Clearing Python text

2012-12-14 Thread Dave Angel
On 12/14/2012 10:25 AM, Waters, Mike [ITSCA Non-J&J] wrote: > Hi Tutor, > I am using Win 7 ,Python 2.7. Interpreter. > To state my challenge : When I have filled a page with values and text until > it reaches the bottom of the screen, how can I highlight this and remove to > allow further entries

Re: [Tutor] New Re: Clearing Python text

2012-12-14 Thread Monte Milanuk
On 12/14/2012 07:25 AM, Waters, Mike [ITSCA Non-J&J] wrote: Hi Tutor, I am using Win 7 ,Python 2.7. Interpreter. To state my challenge : When I have filled a page with values and text until it reaches the bottom of the screen, how can I highlight this and remove to allow further entries? I have

Re: [Tutor] New Re: Clearing Python text

2012-12-14 Thread Oscar Benjamin
Further to previous comments, It is also preferred to send emails to this list in plain text rather than html. This is because it protects the formatting of Python code and works better with all possible mail-clients/news-readers/archives etc. On 14 December 2012 15:25, Waters, Mike [ITSCA Non-J&J

[Tutor] New Re: Clearing Python text

2012-12-14 Thread
Hi Tutor, I am using Win 7 ,Python 2.7. Interpreter. To state my challenge : When I have filled a page with values and text until it reaches the bottom of the screen, how can I highlight this and remove to allow further entries? I have seen John Guttag do this but he seems to be using a MAC. Than

[Tutor] Fwd: Re: Tutor Digest, Vol 106, Issue 31

2012-12-14 Thread Brian van den Broek
Forwarding to the list what I sent privately. Stupid android UI. -- Forwarded message -- From: "Brian van den Broek" Date: 14 Dec 2012 10:01 Subject: Re: [Tutor] Tutor Digest, Vol 106, Issue 31 To: "Waters, Mike [ITSCA Non-J&J]" On 14 Dec 2012 08:43, "Waters, Mike [ITSCA Non-J&J

Re: [Tutor] Tutor Digest, Vol 106, Issue 31

2012-12-14 Thread Oscar Benjamin
If you reply to the digest email you should to do two things: 1) Change the subject line to match the email you are replying to (or in this case choose a new subject). 2) Delete any part of the message that you are not responding to (in this case all of it). In fact why are you replying to the dig

Re: [Tutor] Tutor Digest, Vol 106, Issue 31

2012-12-14 Thread
Hi Python tutor I have a question I believe I have posted before: when you have filled the page with text (commands,list etc) how do you clear the page to allow a clean page to continue on writing script? Thanks appreciate your help. Mike -Original Message- From: Tutor [mailto:tutor-boun