highScore = 9
isRaining = False
firstName = "Howie"
print(str(highScore) + " is an integer")
print(str(isRaining) + " is a boolean")
print(firstName + " is a string")
9 is an integer
False is a boolean
Howie is a string
num1=32
num2=40
num3=69
print(str(num1))
32
currentScore = 10
highScore = currentScore
highScore = 7
print(str(highScore))
7
Class = ["Math", "English", "CSP", "Bio"]
print(Class[1])
English
# Variable 1
numFamily = 4
print(numFamily)
# Variable 2
bestFriends = ["Howie", "Jayden", "Nihar", "Will"]
print(bestFriends)
# Variable 3
sushibeatspizza = True
print(sushibeatspizza)
# Variable 4
name = "Howie"
print(name)
4
['Howie', 'Jayden', 'Nihar', 'Will']
True
Howie
import json
lst = ["Suhsi","Burgers","Pizza","Candy Corn"]
print(type(lst))
a = json.dumps(lst)
print(a)
print(type(a))
<class 'list'>
["Suhsi", "Burgers", "Pizza", "Candy Corn"]
<class 'str'>