Special Offer - Enroll Now and Get 2 Course at ₹25000/- Only Explore Now!

All Courses
Python Keywords

Python Keywords

May 17th, 2019

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