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 154: | Line 154: | ||
You can reassign variables if you want. What do you think will print if you type in: | You can reassign variables if you want. What do you think will print if you type in: | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
x = 4 | x = 4 | ||
x | x | ||
x = 5 | x = 5 | ||
x | x | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 168: | Line 162: | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
x = 3 | x = 3 | ||
y = 4 | y = 4 | ||
x * y | x * y | ||
x * x | x * x | ||
2 * x - 1 * y | 2 * x - 1 * y | ||
</syntaxhighlight> | </syntaxhighlight> |