Hack 1 variable 1 is a integer variable 2 is a string variable 3 is a list variable 4 is a boolean
#Variable 1
luckynumber = 12
print(luckynumber)
#Variable 2
favfood = "pizza"
ingridient = "flour"
print(favfood + (" is my favorite food and its base is made of")+(ingridient))
#Variable 3
daysofWeek = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
print(daysofWeek[6] + ("is my favorite day"))
#Variable 4
physicsisHard = True
print(str(physicsisHard) + (", I have to study a lot"))
#Hack 2
import json
daysofWeek = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
print(type(daysofWeek))
a = json.dumps(daysofWeek)
print(a)
print(type(a))
12
pizza is my favorite food and its base is made offlour
Sundayis my favorite day
True, I have to study a lot
<class 'list'>
["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
<class 'str'>