Re: [Tutor] Simple python help
On 10/06/14 15:55, Stephen Brazil wrote: Hello! I am brand new to python and need to know how to make the attached lines of code work. Should be pretty self-explanatory. Not if your mail tool doesn't display images. This is a text based list so your code is invisible... But on another mail reader You have semi colons which are not needed in Python You have curly braces which are not needed in Python You have no quotes around your string (stephen) which are needed You have no colons after the if or else statements, which are needed. You need to go back to your tutorial and read it more carefully. And remember that Python is not C/C++/Java/JavaScript/Perl or PHP... Or try mine, especially the topic on Branching -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Simple python help
On 2014-06-10 07:55, Stephen Brazil wrote: Hello! I am brand new to python and need to know how to make the attached lines of code work. Should be pretty self-explanatory. [cid:40C1630E-BBA6-41A6-A641-3B1FBE3CBFB8] ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor I am curious to know if this is interpretable (i.e. does the "cid" in square brackets refer to anything meaningful?) ?perhaps the list strips attachments and substitutes some other reference? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Simple python help
On Jun 10, 2014 3:14 PM, "Stephen Brazil" wrote: > > Hello! I am brand new to python and need to know how to make the attached lines of code work. Should be pretty self-explanatory. > > Also, copy and paste code. Use text only not rtfm or html to post. Lose the curly braces. Python doesn't need them ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Simple python help
On Tue, Jun 10, 2014 at 7:55 AM, Stephen Brazil wrote: > Hello! I am brand new to python and need to know how to make the attached > lines of code work. Should be pretty > You need quotes. Stephen (without quotes) is an object, which you haven't previously defined. 'Stephen' is a string, which can be compared to person. Which version of Python are you using? If it's 2.x, PLEASE don't use input() - use raw_input() instead. In 3.x, input() does what raw_input() used to, so it's cool. Finally, you're likely to catch some grief for posting your code as a picture; in future, post code as plain text. (Sure, we won't see the nifty syntax highlighting, but that's OK!) Every single post to this list that's anything but plain text generates at least one complaint; it significantly lowers the signal-to-noise ratio. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Simple python help
On 10/06/2014 15:55, Stephen Brazil wrote: Hello! I am brand new to python and need to know how to make the attached lines of code work. Should be pretty self-explanatory. I am not responding to Stephen and his amazing technicolour code, sorry :-( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Simple python help
On Jun 10, 2014 3:14 PM, "Stephen Brazil" wrote: > > Hello! I am brand new to python and need to know how to make the attached lines of code work. Should be pretty self-explanatory. > > You need to quote 'Stephen' ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor