Python Keywords (Grouped & Explained)

1. Boolean & Null

Keyword Description
True Represents Boolean true value
False Represents Boolean false value
None Represents no value or null

2. Logical Operators

Keyword Description
and Logical AND
or Logical OR
not Logical NOT
is Checks object identity
in Checks membership in a sequence

3. Control Flow

Keyword Description
if Conditional branching
elif Else if condition
else Else block
match Pattern matching (Python 3.10+)
case Used inside match block

4. Loops

Keyword Description
for For loop
while While loop
break Exit loop
continue Skip current iteration
pass Do nothing (placeholder)

5. Functions & Classes

Keyword Description
def Defines a function
return Return value from function
lambda Anonymous function
class Defines a class
yield Returns generator object

6. Exception Handling

Keyword Description
try Try block for exception
except Catches exception
finally Always executes after try
raise Raise an exception
assert Assert condition is true

7. Importing & Modules

Keyword Description
import Import module
from Import specific part of module
as Import alias

8. Variable Scope

Keyword Description
global Declare global variable
nonlocal Use outer function’s variable

9. Context Management & Async

Keyword Description
with Context manager
async Asynchronous function
await Wait for async result

10. Miscellaneous

Keyword Description
del Delete object/variable

Note:

  • They are case-sensitive and cannot be used as variable names.
  • Newer versions (3.10+) include match and case.

Welcome to ShikshaSanchar!

ShikshaSanchar is a simple and helpful learning platform made for students who feel stressed by exams, assignments, or confusing topics. Here, you can study with clarity and confidence.

Here, learning is made simple. Notes are written in easy English, filled with clear theory, code examples, outputs, and real-life explanations — designed especially for students like you who want to understand, not just memorize.

Whether you’re from school, college, or someone learning out of curiosity — this site is for you. We’re here to help you in your exams, daily studies, and even to build a strong base for your future.

Each note on this platform is carefully prepared to suit all levels — beginner to advanced. You’ll find topics explained step by step, just like a good teacher would do in class. And the best part? You can study at your pace, anytime, anywhere.

Happy Learning! – Team ShikshaSanchar