In programming, a keyword is a “reserved word” by the language which conveys special meaning to the interpreter. It may be a command or a parameter. Keywords cannot be used as a variable name in the program snippet. Python language also reserves some of the keywords that convey special meaning. In Python, keywords are case sensitive.
This keyword is used to test object identity. The “is keyword” is used to test whether two variables belong to the same object. The test will return
True if the two objects are the same else it will return False even if the two objects are 100% equal.
== operator is used to test if two objects are the same.
a is b # Using if statement if a is b: statement(s)
- Python in Keyword
- Global keyword in Python
- Keyword Module in Python
- Python | assert keyword
- finally keyword in Python
- Python | yield Keyword
- Use of nonlocal vs use of global keyword in Python
- Python IMDbPY - Searching keyword
- How to check if a string is a valid keyword in Python?
- Python | Passing dictionary as keyword arguments
- Python program to check if a given string is Keyword or not
- Python IMDbPY – Searching movies matching with keyword
- Python - Read blob object in python using wand library
- Python | Index of Non-Zero elements in Python list
- Python | Convert list to Python array
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.