Boston Python workshop 2/Friday tutorial: Difference between revisions
Content added Content deleted
(→Types) |
|||
Line 89: | Line 89: | ||
</pre> |
</pre> |
||
Giving a name to something, so that you can refer to it by that name, is called |
Giving a name to something, so that you can refer to it by that name, is called <b>assignment</b>. Above, we assigned the name 'x' to 4, and after that we can use <code>x</code> wherever we want to use the number 4. |
||
Variables can't have spaces or other special characters, and they need to start with a letter. Here are some valid variable names: |
Variables can't have spaces or other special characters, and they need to start with a letter. Here are some valid variable names: |