All Courses
Python Keywords

Python Keywords

May 17th, 2019 python

Python Keywords

  • Keywords or Reserved words, which carries its own functionality in python.
  • We should not use these keywords as variable or class name (which might end up in conflict while execution)
  • Keywords in python exist in lower cases except for Boolean such as (True, False and None)

List of Kewords:

Def

class

in

not in

is

if

while

break

pass

assert

lambda

elif

else

for

True

None

False

 

Example:

def fun(): à Function definition
print(“def is the keyword in python”)
fun() à Function Calling
Social Share:

0 responses on "Python Keywords"

Leave a Message

Your email address will not be published. Required fields are marked *