Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Python for Beginners What is a Variable?

all alphabates and alphanumeric are variables

all alphabates and alphanumeric are variables ?

what variables are there at python

What do you mean?

boolean, tuple, dictionary, list, string, int, etc..

1 Answer

Nils Sens
Nils Sens
9,654 Points

No, letters of the alphabet and numbers etc. are not variables. Variables can CONTAIN these strings of letters, numbers etc. Variables are like magic containers where you can put stuff in, and just by calling the container's name, the stuff comes out again. Maybe you were trying to ask about "data types"? Number is one data type. String of text (even including numbers, but in this case they can't be used in math operations), booleans (True / False) are others. The other answer lists them all I guess.