Aug 7, 2024
print("Hello, World!")
print is a built-in function to output messages.age = 20
print(age)
first_name).True, False).input() function to read user input:
name = input("What is your name? ")
print("Hello, " + name)
int(), float(), str(), bool()+, -, *, /%) for remainder.**).***>, <, >=, <=, ==, !=and, or, notif temperature > 30:
print("It's a hot day")
elif temperature > 20:
print("It's a nice day")
else:
print("It's cold")
i = 1
while i <= 5:
print(i)
i += 1
for num in range(5):
print(num)
names = ["John", "Bob", "Alice"]
append(), insert(), remove(), clear().in operator to check for existence.len(list).numbers = (1, 2, 3)
count(), index().