and - AND logical operator
not - NOT logical operator
or - OR logical operator
in - To check if a value is present in a collection
is - To check if two objects are the same
as - To create an alias
A Thread👇 #100DaysOfCode
elif - Used in conditional statement short for else if
else - Used in conditional statements
def - To define a Function
del - To delete an object
for - To create a for loop
True - Boolean value
False - Boolean value
None - Null value
try - To make a try.. except statement
except - To define what to do when an exception occurs
raise - To raise an exception
finally - Used in try... except blocks
while - To create a while loop
break - To break out of a loop
return - To exit a function and return a value
from - To import specific parts of a module
import - To import a module
global - To declare a global variable
class - To define a class
assert - For debugging
nonlocal - To declare a non-local variable
yield - To end a function and return a generator
Last but not least, "with" keyword is used to simplify exception handling.