You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Semicolon;: Used to squeeze multiple lines of code into one.
Colon:: Used in control structures (if else, loops, ...), function definition, try except blocks.
Single/Double Quotes' ": Mainly used with strings.
Less/More than< >: Comparison operators, they can be combined with = to create <= and >=. They are also used as a left/right shifts operators.
a=0b110011print(bin(a))
print(a)
# Left Shift === Multiplication by 2print(bin(a<<1))
print(a<<1)
# Right Shift === Division by 2print(bin(a>>1))
print(a>>1)
Comma,: Used to separate the arguments/parameters for a function. It separates the elements in lists, dictionaries, sets and tuples.
Full Stop.: Used to access either the methods or the attributes of an object.