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