Re: Concerning Dictionaries and += in Python 2.x

2015-01-19 Thread Luke Tomaneng
Thanks Chris / Mr. Angelico / whatever you prefer. I attempted to post a reply to you before but it could not be viewed even after refreshing several times. You've been helpful. -- https://mail.python.org/mailman/listinfo/python-list

Random ALL CAPS posts on this group

2015-01-19 Thread Luke Tomaneng
Has anyone noticed these? There have been about three of them recently and they don't seem to have anything to do with Python at all. Does anyone know if there is a good reason they are here? -- https://mail.python.org/mailman/listinfo/python-list

Concerning Dictionaries and += in Python 2.x

2015-01-19 Thread Luke Tomaneng
I have been having a bit of trouble with the things mentioned in the title. I have written the following script for a Codecademy course: stock = { banana: 6, apple: 0, orange: 32, pear: 15 } prices = { banana: 4, apple: 2, orange: 1.5, pear: 3 } def

Re: Concerning Dictionaries and += in Python 2.x

2015-01-19 Thread Luke Tomaneng
On Monday, January 19, 2015 at 4:21:58 PM UTC-8, Chris Angelico wrote: On Tue, Jan 20, 2015 at 11:12 AM, Luke Tomaneng wrote: def compute_bill(food): total = 0 for item in food: if stock[item] 0: total += prices[item] stock[item] = stock[item

Program calling unwanted functions

2014-12-22 Thread Luke Tomaneng
Hello to all those in this forum, My code seems to have a mind of its own. I have been writing a program to reenact the Twenny Wun Vine video, and it seems to be activating functions without me calling them. Here is the script: def kid(): print Cameraman: You stupid. kid1 =

How to use the .isalpha() function correctly

2014-12-14 Thread Luke Tomaneng
Here a very small program that I wrote for Codecademy. When I finished, Codecademy acted like it was correct, but testing of this code revealed otherwise. -- print 'Welcome to the Pig Latin Translator!' # Start coding here! raw_input(Enter a

Re: Run Programming ?????

2014-12-14 Thread Luke Tomaneng
need to review some basic syntax, but I'm not sure if you'll need it. Luke Tomaneng -- https://mail.python.org/mailman/listinfo/python-list

Re: Run Programming ?????

2014-12-14 Thread Luke Tomaneng
On Sunday, December 14, 2014 9:24:54 AM UTC-8, Luke Tomaneng wrote: On Friday, December 12, 2014 4:40:01 AM UTC-8, Delgado Motto wrote: IĀ travelĀ alot, if not just interested in things of pocketable portability, and was curious if you can tell me if Python can be LEARNED from beginner

Re: How to use the .isalpha() function correctly

2014-12-14 Thread Luke Tomaneng
On Sunday, December 14, 2014 9:27:14 AM UTC-8, Chris Warrick wrote: On Sun, Dec 14, 2014 at 6:16 PM, Luke Tomaneng luketoman...@gmail.com wrote: Here a very small program that I wrote for Codecademy. When I finished, Codecademy acted like it was correct, but testing of this code revealed