Aug 12, 2024
app.py
).print("Hello, World!")
variable_name = value
age = 20
print(age)
input()
function to receive user input.
name = input("What is your name? ")
print("Hello, " + name)
int()
, float()
, bool()
, str()
+
), Subtraction (-
), Multiplication (*
), Division (/
, //
, %
, **
)>
, <
, >=
, <=
, ==
, !=
and
, or
, not
if condition:
# code block
elif condition:
# code block
else:
# code block
while condition:
# code block
names = ["John", "Bob", "Mosh"]
append()
, insert()
, remove()
, clear()
.len(list)
.numbers = (1, 2, 3)