Kindle Notes & Highlights
Literal Constants
integers
floats.
Strings
pay attention to the following part.
Triple Quotes
The format method
age = 20 name = 'Swaroop' print('{0} was {1} years old when he wrote this book'.format(name, age))
print('Why is {0} playing with that python?'.format(name))
print('{} was {} years old when he wrote this book'.format(name, age))
The first character of the identifier must be a letter of the alphabet (uppercase ASCII or lowercase ASCII or Unicode character) or an underscore (‘_’).
Python refers to anything used in a program as an object.
Python is strongly object-oriented in the sense that everything is an object including numbers, strings and functions.
A physical line is what you see when you write the program. A logical line is what Python sees as a single statement.
If you want to specify more than one logical line on a single physical line, then you have to explicitly specify this using a semicolon (;) which indicates the end of a logical line/statement.
if you have a long line of code, you can break it into multiple physical lines by using the backslash. This is referred to as explicit line joining:

