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
Want to turn a list of strings into a single string? You can use the string join method to join a list of strings together (concatenating them with a delimiter of your choice).| www.pythonmorsels.com
Python's string formatting syntax is both powerful and complex. Let's break it down and then look at some cheat sheets.| www.pythonmorsels.com
Wondering how to concatenate a string in Python? Hold on! There are two ways to build up bigger strings out of smaller strings: string concatenation (with +) and string interpolation (with f-strings).| www.pythonmorsels.com
In Python, strings are used to represent text and bytes are used to represent binary data. If you end up with bytes that representing text, you can decode them to get a string instead.| www.pythonmorsels.com
If you need to make a very simple command-line interface and it doesn't need to be friendly, you can read sys.argv to manually process the arguments coming into your program.| www.pythonmorsels.com
Python's strings have dozens of methods, but some are much more useful than others. Let's discuss the dozen-ish must-know string methods and why the other methods aren't so essential.| www.pythonmorsels.com
Python's built-in functions list includes 71 functions now! Which built-in functions are worth knowing about? And which functions should you learn later?| www.pythonmorsels.com
When exceptions go unhandled, Python prints a traceback. Tracebacks are read from the bottom upward. The last line describes what happened and lines above describe where it happened.| www.pythonmorsels.com