print(type(10)) # int
print(type(3.14)) # float
print(type("Hello")) # str
print(type(True)) # bool
x = 5
name = "Alice"
is_happy = True
name = input("Enter your name: ")
print("Welcome,", name)
city = input("City you grew up in: ")
pet = input("Pet's name: ")
print("Your band name:", city + " " + pet)
age = 18
if age >= 18:
print("You are an adult")
def greet(name):
print("Hello", name)
def square(x):
return x * x
print(square(4))
for i in range(5):
print("Iteration", i)
count = 0
while count < 5:
print(count)
count += 1
fruits = ["apple", "banana", "cherry"]
fruits.append("orange")
print(fruits)
student = {"name": "Ali", "age": 20}
print(student["name"])
student["age"] = 21