Arithmetic Operators in Python
Arithmetic Operators in Python
Python
o To display output, use the print() function. You can format the output using
placeholders or f-strings.
Example:
Python
x = 5
print("The value of x is", x)
Python
x = 20
print(type(x)) # Output: <class 'int'>
Green = a string
Grey= a comment
Orange = a number or a parameter (or a predefined property
name(for instance .length ))
Purple = special keyword (like var , if , else , etc)
Light-blue = operator ( + , - , * , / , = , < , == , && , etc)
Dark-blue = a predefined function name or the function name
in a function ...