1/5
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Identifier: a name a programmer gives a piece of data to make the data easier to refer to
a name a programmer gives a piece of data to make the data easier to refer to
Variables
data is subject to change
Constants
data can never change after it is set
If statements (if, if else)
Only prints if condition is true, and provides no output otherwise
If statement example
if(age > 18):
print(âEnjoy your movieâ)
if else statement example
if(age > 18):
print(âEnjoy your movieâ) #only happen if the condition is true
else:
print(âYou are too young for this movieâ) #if the condition is false