πŸ”₯ Welcome to my blog! Latest updates available now. Visit daily! πŸ”₯ πŸ”₯ Click Here for Latest Updates – Visit My Blog πŸ”₯
πŸ”₯ Latest Updates πŸ“Š GP Grade Finder πŸ“’ Government Services Info πŸ†• New Schemes Updates

Reserved or Key Words in Python Programming

 πŸ‘‰In Python some words are reserved to represent some meaning or functionality. Such type of words are called Reserved words.

πŸ‘‰There are 33 reserved words available  in  Python.

-->True, False, None

-->and, or,not,is

-->if,elif,else

-->while,for, break, continue, return,in,yield

-->try,except, finally,raise,assert

-->import,from, as, class, -->def,pass,global,nonlocal,lambda,del, with

πŸ‘‰All Reserved words in Python contain only alphabet symbols.

πŸ‘‰Except the following 3 reserved words, all contain only lower case alphabet symbols.

-->True, False,None

Eg: a= true X

       a=True ✔

>>> import keyword


>>> keyword.kwlist

['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', '

while', 'with', 'yield"]

No comments:

Post a Comment

Thank you Very Much.For Given Comment

Quatation of the Day 22-03-2026