Aug 22, 2024
main.py
.print("I like pizza")
.first_name = "John"
age = 30
price = 10.99
str()
, int()
, float()
, bool()
.input()
function to accept user input.name = input("What is your name?")
if
, elif
, else
for decision-making.and
, or
, not
).def
keyword:
def greet():
.@decorator_name
to apply a decorator.try
, except
to manage exceptions and errors.ValueError
, TypeError
, FileNotFoundError
.open()
to read and write files:
'r'
(read), 'w'
(write), 'a'
(append).json
module.threading
module for creating threads.