Unlike many programming languages, Python doesn't have "type coercion". Python typically doesn't implicitly convert one object to another type of object. Type conversions usually need to be explicit.| www.pythonmorsels.com
If you're trying to make a friendly command-line interface in Python, instead of manually parsing sys.argv you should probably use Python's argparse module.| www.pythonmorsels.com
When working with text files in Python, it's considered a best practice to specify the character encoding that you're working with.| www.pythonmorsels.com
Is your Python program printing out a traceback? You have an uncaught exception! You can catch that exception with a try-except block.| www.pythonmorsels.com
Python crashed with the error TypeError: can only concatenate str (not "int") to str. Essentially Python's saying you've used + between a string and a number and it's unhappy about it. Let's talk about how to fix this issue and how to avoid it more generally.| www.pythonmorsels.com
In Python, slicing looks like indexing with colons (:). You can slice a list (or any sequence) to get the first few items, the last few items, or all items in reverse.| www.pythonmorsels.com
Within a function in Python, you can read from global variables and read from or write to local variables. Within each function, each variable name is either local or global (but not both).| www.pythonmorsels.com
Python's "invalid syntax" error message comes up often, especially when you're first learning Python. What usually causes this error and how can you fix it?| www.pythonmorsels.com
Definitions for colloquial Python terminology (effectively an unofficial version of the Python glossary).| www.pythonmorsels.com