numberScore = 3
isTrue = True
firstName = "Ellie"
print(str(numberScore) + " is a number")
print(str(isTrue) + " is a boolean")
print(firstName + " is my name")
3 is a number
True is a boolean
Ellie is my name
num1 = 3
num2 = 6
print(str(num2))
num2 = num1
print(str(num2))
6
3
classSched = ["ap stats", "expos", "ap physics", "apcsp", "ap gov"]
print(classSched[1])
expos
Hack 1
integer = variable 1
string = variable 2
list = varible 3
boolean = variable 4
Hack 2
import json
#varible ints
numClasses = 5
print(numClasses)
#variable list
favFoods = ["sushi", "anything from trader joes", "ice cream"]
print(favFoods)
#varible boolean
inSchool = True
print(inSchool)
#variable string
favColor = "blue"
print(favColor)
favFoodsJ = json.dumps(favFoods)
print(type(favFoods))
print(type(favFoodsJ))
5
['sushi', 'anything from trader joes', 'ice cream']
True
blue
<class 'list'>
<class 'str'>