
Jonathan C. answered 02/13/22
Master's in Computer Science at the University of Pennsylvania
In Python, keywords are case sensitive.
Unlike Java, Python does not require that all lines end with a semicolon. Instead, it uses indentations and linebreaks to compile your code.
Although indentations are important in Python, they are not required for every line. Instead, the body of functions or statements that you would wrap in curly braces in Java, for example, must be indented. Here's an example:
(Java)
(Python)
In Python, keywords are case sensitive. Most are lowercase, like if, for, return, etc. but some start with an uppercase letter like True, False, None, etc.
A print statement may not contain quotes if you print the value in a variable. For example,
would print "3" to the output.