Comments on: Python in Education – free e-book from O’Reilly https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/ Teach, learn and make with Raspberry Pi Sat, 18 Sep 2021 23:28:24 +0000 hourly 1 https://wordpress.org/?v=7.1.5 By: AndrewS https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224941 Tue, 21 Apr 2015 18:52:53 +0000 https://www.raspberrypi.org/?p=13119#comment-1224941 In reply to Steve.

Looks like https://www.google.co.uk/search?q=raspberry+pi+mono should point you in the right direction… ?

Or you could ask over in the http://www.raspberrypi.org/forums/

]]>
By: Steve https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224909 Tue, 21 Apr 2015 14:54:31 +0000 https://www.raspberrypi.org/?p=13119#comment-1224909 What about .NET support on these boards? Since .NET is open source now, has the community made any progress with .NET on a raspberry Pi? I personally prefer C# over python which is why I’m looking forward to more .NET support for raspberry pi.

]]>
By: Howard https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224870 Tue, 21 Apr 2015 08:32:03 +0000 https://www.raspberrypi.org/?p=13119#comment-1224870 Look nice for encouraging

]]>
By: AndrewS https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224392 Fri, 17 Apr 2015 12:45:59 +0000 https://www.raspberrypi.org/?p=13119#comment-1224392 In reply to MOB.

That Perl one-liner only works for me if I change it to:

perl -ne 'print "$.: doubled $1\n" while /\b(\w+)\b\s+\b\1\b/gi' foo.txt

and the smallest Python script I was able to create that does the same thing is:
import re

for i,l in enumerate(open('foo.txt')):
    for s in re.findall(r'\b(\w+)\b\s+\b\1\b',l,re.I):print str(i+1)+': doubled',s

I’d obviously never normally write such condensed code ;) Perl contains lots of “shortcuts” which makes writing compact one-liners much easier, although the more shortcuts you use, the less readable the code becomes.

]]>
By: paddy https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224323 Thu, 16 Apr 2015 20:32:00 +0000 https://www.raspberrypi.org/?p=13119#comment-1224323 An excellent little introduction. Obviously biased, but justifiably so and articulate.

(My only quibble would be the James Joyce analogy: The 3rd chapter of Ulysses is excellent for teaching the importance of punctuation.)

]]>
By: MOB https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224321 Thu, 16 Apr 2015 20:25:12 +0000 https://www.raspberrypi.org/?p=13119#comment-1224321 There is an example of how difficult Perl is in the book. I found the fuller example on
http://www.math.harvard.edu/computing/perl/oneliners.txt
# look for duplicated words in a line
perl -0777 -ne ‘print “$.: doubled $_\n” while /\b(\w+)\b\s+\b\1\b/gi’ foo.txt

But how does one write a program that does the same in Python in one line? or if this is not possible, what is the shortest Python-program that does this? (This -0777 seems to make Perl ignore line-feeds, see http://perldoc.perl.org/perlrun.html )

]]>
By: Stewart Watkiss https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224187 Wed, 15 Apr 2015 21:56:52 +0000 https://www.raspberrypi.org/?p=13119#comment-1224187 Looks great – not that I’m biased with my daughter being on the front cover and in the acknowledgements :-)

Nicholas has been the organiser of the Raspberry Pi related education days at Pycon UK which my children really enjoyed.

Those that have programming experience and experience teaching children about programming will already know why Python is a great programming language for use in education, but this guide provides the explanation for those without that background knowledge.

]]>
By: Dex Muir https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224181 Wed, 15 Apr 2015 21:34:56 +0000 https://www.raspberrypi.org/?p=13119#comment-1224181 In reply to bertwert.

IS good!

]]>
By: brad https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224164 Wed, 15 Apr 2015 19:04:24 +0000 https://www.raspberrypi.org/?p=13119#comment-1224164 Nice. Looking forward to the read.

]]>
By: bertwert https://www.raspberrypi.org/blog/python-in-education-free-oreilly-book/#comment-1224124 Wed, 15 Apr 2015 14:11:19 +0000 https://www.raspberrypi.org/?p=13119#comment-1224124 Looks Good!

]]>