# Popcorn Hack 1
firstname = 'advik'
nick = 'oddvik'
print(firstname)
print(nick)
advik
oddvik
# Popcorn Hack 2
tanay_age = 3
print(tanay_age + 12)
print(bool(tanay_age - 3))
print(bool(tanay_age + 2))
print(str(tanay_age))
15
False
True
3
# Popcorn Hack 3
srijan = True
print("srijan is " + str(srijan))
srijan = False
print("srijan is " + str(srijan))
print(srijan)
srijan is True
srijan is False
False
# Popcorn Hack 4
coolPeople = ['srijan', 'srijan', 'srijan', 'johnmortenson', 'shanelopez', 'srijan']
print(coolPeople[3] + " is cool")
johnmortenson is cool
# Homework
import json
arnav = {
"cool": True,
"fun": True,
"age": 15,
"fullname": "Arnav Nadar",
"ssn": "911"
}
otherpeople = ["jmort", "slopez"]
for val in arnav:
if type(arnav[val]) == bool:
print(f'Arnav is {val}')
else:
print(f"Arnav's {val} is {arnav[val]}")
people_json = json.dumps(otherpeople)
print(people_json)
Arnav is cool
Arnav is fun
Arnav's age is 15
Arnav's fullname is Arnav Nadar
Arnav's ssn is 911
["jmort", "slopez"]