Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python Basics!
You have completed Python Basics!
Preview
Let's explore how to store the objects that you create for later use.
Variable Naming Rules
- Can contain both letters and digits, but must begin with either a letter or an underscore.
- Remember that case matters, you can use upper case, but by convention we do not.
- They cannot be a Python keyword
Learn More
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
To be a little bit more specific
we created the new string.
0:00
We did that creation by surrounding
our text with quotation marks.
0:00
This is what is known as a string literal.
0:04
Now, we currently don't keep that
string around, we create it,
0:07
we use it in our print statement,
and then we let it go.
0:10
But we can actually store it and
use it later.
0:13
In the real world, we create things and
store them for later use all the time.
0:17
Here's an example I can
think of right now.
0:21
Actually I can't stop thinking though
probably because it is about lunch time.
0:23
Last night I made some delicious tacos, so
0:27
good in fact that I wanted to
bring them into work today.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up