|
| 1 | +# Video alternative: https://vimeo.com/954334215/cbd70ba2fa |
| 2 | + |
| 3 | +# Hello! Welcome to programming. I will guide you through these early steps. |
| 4 | +# |
| 5 | +# To begin, I'd like to share with you a little quote from a writer called Italo |
| 6 | +# Calvino, himself retelling a Chinese story: |
| 7 | +# |
| 8 | +# "Among Chuang-tzu's many skills, he was an expert draftsman. The king asked |
| 9 | +# him to draw a crab. Chuang-tzu replied that he needed five years, a country |
| 10 | +# house, and twelve servants. Five years later the drawing was still not begun. |
| 11 | +# "I need another five years," said Chuang-tzu. The king granted them. At the |
| 12 | +# end of these ten years, Chuang-tzu took up his brush and, in an instant, with |
| 13 | +# a single stroke, he drew a crab, the most perfect crab ever seen." |
| 14 | +# |
| 15 | +# Perhaps you have come to programming because you would like to be good at it. |
| 16 | +# Perhaps you know people, or you have heard of people, who are really |
| 17 | +# exceptional programmers. |
| 18 | +# |
| 19 | +# You, very likely, are not this person yet. Like Chuang-tzu, it will take you |
| 20 | +# many years to reach the effortless skill of an expert programmer. |
| 21 | +# |
| 22 | +# But every programmer has sat where you are sat, curious and willing to learn. |
| 23 | +# They have spent many hours getting things wrong, being stuck, being confused. |
| 24 | +# You will go through this too. |
| 25 | +# |
| 26 | +# Every expert sat where you are sat. What they all have in common? They kept |
| 27 | +# going. |
| 28 | +# |
| 29 | +# So let's get started. |
| 30 | +# |
| 31 | +# What are we learning? |
| 32 | +# ===================== |
| 33 | +# |
| 34 | +# We're going to learn the fundamentals of the programming language Python. Most |
| 35 | +# programming languages are quite similar, so it doesn't matter much that this |
| 36 | +# is Python. The key ideas are the same. |
| 37 | +# |
| 38 | +# We're going to learn enough to succeed in the Makers interview process. The |
| 39 | +# ideas themselves are quite simple. The complexity of programming is in the |
| 40 | +# combination of these ideas. Here's a list of what we'll learn: |
| 41 | +# |
| 42 | +# * Functions (making your own programs) |
| 43 | +# * Arithmetic (basic maths) |
| 44 | +# * Expressions and statements (the building blocks of programs) |
| 45 | +# * Strings (letters and words) |
| 46 | +# * Conditionals (ifs and elses) |
| 47 | +# * Lists (sequences of items) |
| 48 | +# * Loops (whiles and fors) |
| 49 | +# * Dictionaries (pairs of items) |
| 50 | +# |
| 51 | +# You will find exercises throughout the material, signposted with @TASK. We |
| 52 | +# will finish the material with some extra tricky exercises for you to test your |
| 53 | +# skills. |
| 54 | +# |
| 55 | +# By the way — these lines starting with the `#` character? They're called |
| 56 | +# comments. They don't get run by Python — they're just for me to talk to you. |
| 57 | +# You can create one yourself if you like. |
| 58 | + |
| 59 | +# Type your name as a comment on the next line. |
| 60 | + |
| 61 | +# Hint: if you're on a Mac, type opt + 3 to get a # |
| 62 | + |
| 63 | +# Now open up 011_identity.py and get started with some real code! |
0 commit comments