Your browser does not support JavaScript!
Upvotes Anonymous 1 User 0

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.
Was this helpful?


Leave a Comment

I agree to the Terms of Service
Design © 2015, Downranked, LLC.,
Original user code contributions under MIT License