What is a variable
named data store that contains a value
- could change during execution of program
- have meaningful names
what is a constant?
names data store that contains a value
- does NOT change during execution of program
- has meaningful names
Basic data types
Integer- pos or neg numbers (can be used with mathematical operations)
Real- pos or neg numbers with a fractional part (can be used with mathematical operations)
char- a single character
string- several characters in length
–> characters can be any printable symbol
boolean- only has two values
How to make a conditional statement
if (variable) = (something):
print (“something”)
else:
print (“no”)