Editing 353: Python
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 14: | Line 14: | ||
{{w|Dynamic typing}} and {{w|significant whitespace}} are two controversial features of Python, which make some people—like Cueball's friend—hesitant to use the language. | {{w|Dynamic typing}} and {{w|significant whitespace}} are two controversial features of Python, which make some people—like Cueball's friend—hesitant to use the language. | ||
− | Dynamic typing means that variables do not have types (like "list of short integers" or " | + | Dynamic typing means that variables do not have types (like "list of short integers" or "string"); any value of any type can be placed in any variable. Dynamic typing allows for more flexible languages, but it means that certain kinds of errors (like trying to subtract a list from a number) can't be caught until a program is run, and some people think this is too dangerous for the tradeoff to be acceptable. |
Whitespace is a string of invisible text characters, like spaces or tabs. In programming, blocks of code controlled by a statement are usually indented under that statement. Most languages require you to use braces (<code>{…}</code>) or special keywords (<code>BEGIN…END</code>) to delimit these blocks; in Python, the indentation itself is the delimiter. Many Python programmers find that this makes code more readable, but many other programmers find it too "magical" and don't trust it. | Whitespace is a string of invisible text characters, like spaces or tabs. In programming, blocks of code controlled by a statement are usually indented under that statement. Most languages require you to use braces (<code>{…}</code>) or special keywords (<code>BEGIN…END</code>) to delimit these blocks; in Python, the indentation itself is the delimiter. Many Python programmers find that this makes code more readable, but many other programmers find it too "magical" and don't trust it. |