print("Hello Lecture 3!")

name = "Moix"
longer = "This is a longer string of text"
         #0123456789012345678901234567890

print(name)

print(len(name))
print(len("A literal string"))

print(name[1:3])
print(longer[ 1 : 10 : 2 ])
print(len(longer[ 1 : 10 : 2 ]))

print(3 + 2)
print("three" + "two")
print(str(1) + "three")

digits = 98.6

print(float(int(float("99789.87"))))

print(int(digits))
print(digits)

print(float("3e8"))

print(ord('🐉'))
print(chr(128009 + 1))

print("She called him \"interesting\" the other day")
print('She called him "interesting" the other day')
print("Isn't is a \"contraction\"")
print("A\nB")

price = 5
item = "coffee"

print(item + ":\t" + str(price))
print("coffee:\t%.2f" % price)
print(f"{item}:\t{price:.2f}")

names = ["you", "Carol", "Bob"]
names[0] = "anthony"
print(names.index("Bob"))



print([f"{i} squared is {i**2}" for i in range(1, 10)])


set1 = {"A", "B", "C"}
set2 = {"C", "A", "B", 7}

print(set1)
print(set2)

print(set1 == set2)

print(7 in set1)
print(7 in set2)