Strings in Python 3

A string is a way to store multiple characters (e.g. a username, a street address, etc.). It's easy to create a string in Python:

username = 'myuser123'

You can also use double quotes to create a string:

username = "myuser123"

The above code lines do the exact same thing. However, there are generally accepted reasons for using one versus the other.

Next: Functions in Python

Comments

Leave a comment

What color are green eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.