[Tutor] New to this list ....

2012-03-30 Thread Barry Drake
g = 0 results = [correct, match, wrong] results = getflag(flag_1, results) results = getflag(flag_2, results) results = getflag(flag_3, results) results = getflag(flag_4, results) Any thoughts? Kind regards,Barry. -- From Barry Drake - a me

Re: [Tutor] New to this list ....

2012-03-30 Thread Barry Drake
On 30/03/12 15:04, Barry Drake wrote: One of the things I wanted to do is to use a four integer array to get four integers returned from a function. I ended up using what I think is a list. (I'm not really sure of the datatypes yet). This is what I did, and it works, but looks very inel

Re: [Tutor] New to this list ....

2012-03-30 Thread Barry Drake
switch and case, but I gather there is no direct equivalent in Python ... But it works as is. -- From Barry Drake - a member of the Ubuntu advertising team. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] New to this list ....

2012-03-30 Thread Barry Drake
happening. Kind regards, Barry. -- From Barry Drake - a member of the Ubuntu advertising team. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] New to this list ....

2012-03-30 Thread Barry Drake
style works fine for immutable types (int, float, str) but does not work as people new to Python think it does. Thanks for the warning. -- From Barry Drake - a member of the Ubuntu advertising team. ___ Tutor maillist - Tutor@python.org To u

Re: [Tutor] New to this list ....

2012-03-30 Thread Barry Drake
ot it. Looks good! I've looked at 'Snake Wrangling for Kids'. Informative, but the example code is not going to inspire kids. Al Sweigarts two e-books are a bit better, but I think I'm going to get more mileage from the above. Thanks. Kind regards, Barry. -- F

[Tutor] breeds of Python .....

2012-03-31 Thread Barry Drake
to concentrate on Python3 or stay with Python2 and get into bad habits when it comes to change eventually? Apart from the print and input functions, I haven't so far got a lot to re-learn. Kind regards,Barry. -- From Barry Drake - a member of the Ubuntu advertising

Re: [Tutor] breeds of Python .....

2012-04-01 Thread Barry Drake
nd Unity haters. I guess Unity is a bit like Marmite. I get the view that Python3 is just a natural progression. I never experienced this with c as the standard library base on Kernighan and Ritchie never seemed to change its syntax from the word go. Kind regards,Barry. -- From Barry

Re: [Tutor] breeds of Python .....

2012-04-01 Thread Barry Drake
aback a few years later when my son left his job as sys-admin for a big firm. He said that the work was a job for a twenty-year old whiz-kid. He was more interested in how business works. He now charges an absolute fortune as a freelance consultant. Kind regards,Barry -- From B

Re: [Tutor] breeds of Python .....

2012-04-01 Thread Barry Drake
n and helpful. I now await my Raspberry-pi to see what stuff I can run on it. I assume it comes with Python3 in the bootable Fedora OS. By the time it comes, I thinnk I'll have found my way around Python to a usable extent. Regards,Barry. -- From Barry Drake - a member of

Re: [Tutor] breeds of Python .....

2012-04-01 Thread Barry Drake
that version, so it must have been ansi-c. I hadn't realised it was any different from the K&R specs. Interesting! -- From Barry Drake (The Revd) Health and Healing advisor to the East Midlands Synod of the United Reformed Church. See http://www.urc5.org.uk/index for information a

Re: [Tutor] breeds of Python .....

2012-04-01 Thread Barry Drake
ard-drive, just two 5-1/4" floppies. Those were the days! Regards,Barry. -- From Barry Drake - a member of the Ubuntu advertising team. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mai

Re: [Tutor] breeds of Python .....

2012-04-01 Thread Barry Drake
d it - and certainly I hadn't realised that I already have it as part of python3. Most of the simple examples that I would want to use should convert using 2to3 'out of the box'. Thanks. Regards, Barry. -- From Barry Drake - a menber of th

[Tutor] Struggling with logic .....

2013-01-19 Thread Barry Drake
in an incorrect position Result: 0 - you have a correct number in an incorrect position Result: -1 - you have an incorrect number Result: -1 - you have an incorrect number -- Barry Drake is a member of the the Ubuntu Advertising team. http://ubuntu.com/ import random # generate rand

Re: [Tutor] Struggling with logic .....

2013-01-19 Thread Barry Drake
yntax while I'm at it? Is there any good reason to move away from Python2? Kind regards,Barry. -- Barry Drake is a member of the the Ubuntu Advertising team. http://ubuntu.com/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor