Editing Community Data Science Workshops (Core)/Day 0 Tutorial
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 110: | Line 110: | ||
A lot of work gets done in Python using variables. Variables are a lot like the variables in math class, except that in Python variables can be of any data type, not just numbers. | A lot of work gets done in Python using variables. Variables are a lot like the variables in math class, except that in Python variables can be of any data type, not just numbers. | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
type(4) | type(4) | ||
x = 4 | x = 4 | ||
x | x | ||
type(x) | type(x) | ||
2 * x | 2 * x | ||
</syntaxhighlight> | </syntaxhighlight> |