Python - Basic Syntax
A computer programming language comprises of the set of predefined words which are called keywords. A prescribed rule of usage for each keyword is known a syntax.
The list of Python keywords can be obtained by using this “help” command in Python shell.
>>>help("keywords")
The following table list. These are all the keywords in Python.
False |
def |
if |
raise |
None |
del |
import |
return |
True |
elif |
in |
try |
and |
else |
is |
while |
as |
except |
lambda |
with |
assert |
finally |
nonlocal |
yield |
break |
for |
not |
|
class |
from |
or |
|
continue |
global |
pass |
Except for the first three (False, None and True), the other keywords are entirely in lowercase.