• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Think Python - I see the author has written learning books for other languages, so why Python?

 
Ranch Hand
Posts: 125
1
Clojure Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Allen Downey,

Thank you for participating in the book giveaway. My first question is simple - which version of Python is your book written for? 2.x? 3.x?

I see at Amazon that you have written books for C++, Java, R, and Perl and an earlier book on Python. What made you decide to tackle Python again? I presume for someone new to computer science Python is an easier choice than C++, Java, or R. But introductory work with Perl, for example, is in my opinion not appreciably more complex than introductory work in Python. I think there is a lot of obfuscated Perl code out in the web, but starting with print "Hello World!\n" in Perl is not much worse than starting out in Python.

Also, I'm curious what made you pick Python as an introductory language instead of, for example, Javascript, Ruby, or Scheme.

Thanks for your time.
 
Author
Posts: 28
Python Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Michael,

Lots of good questions, so thanks!

I have taught intro programming classes in C, Java, and Python --- and Python wins hands down. Students had less frustration with syntax, more of them were able to master basic programming skills, and they were able to take on more ambitious and more interesting projects.

You are right that Perl is also beginner-friendly. But in my opinion Python code is easier to read, which makes it easier to debug. And for beginners debuggability might be the most important feature.

You asked about which version of Python the book is for. It is primarily Python 2.x, but there are only a few differences in Python 3 that come up, and I note them in the text. The accompanying software suite, Swampy, is in Python 2.x.

Thanks again!
Allen
 
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic