Let's learn Python!
July 1, 2010
[0, 1, 2, 3, 4]
>>> for i in range(5):
... print i
Filed under Uncategorized
Pingback: Consolidation: CryptoPyThy « Python Tutorials for Kids 8+
I really feel like a little more explanation is needed here. All the other examples talked about what was going on, but this one didn’t. Why did range(5) not go to 5? I know it’s because it create a zero based array and added 5 items to it, but this might not be so obvious to our young readers. Also, we just did our first loop with nary a mention of how important or power they are.
you are a but face
This needs more explanation, not just the Python command stuff to follow. 10 year olds like me don’t understand.
i can and im 9
Hi Alex (and jscubbuage),
Part of my motivation is to have students fend for themselves a bit. As the course goes on it has more explanation (possibly too much!).
[This particular tutorial is an exercise in empiricism. I’m not trying to show what range(5) means so much as what it is.]
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.
New here? Please click the Getting Started tab
Looking for something? Try the Index tab
Blog at WordPress.com.
Get every new post delivered to your Inbox.
Join 75 other followers