In Python, keywords are reserved words with special meanings that cannot be used as identifiers. This interactive tool helps you explore all 35 Python keywords visually, validate identifier names in real-time, and master naming rules through quizzes. Updated for CBSE 2025-26 curriculum.
Source = Unsplash
Control Flow
Boolean/None
Functions/Classes
Import/Module
Exception Handling
Other
๐ฎKeywords Explorer
Tap any bubble to learn about the keyword. Filter by category using the buttons below.
๐ Tap any bubble to learn about the keyword
โ Identifier Validator
Test if your variable name is valid. Get instant feedback and suggestions.
๐ก Suggested alternatives:
Identifier Naming Rules
Must start with: Letter (a-z, A-Z) or underscore (_)
Can contain: Letters, digits (0-9), and underscores
Cannot be: Python keywords or built-in function names
Case sensitive: 'Variable' and 'variable' are different
Best practices: Use descriptive names, snake_case for variables, PascalCase for classes
๐Keyword Categories
Quick reference for each keyword type.
๐ Control Flow
Decision & Loops
ifelifelseforwhilebreakcontinuepass
โ๏ธ Functions & Classes
Define & Return
defclassreturnyieldlambdaglobalnonlocal
โ ๏ธ Exception Handling
Error Management
tryexceptfinallyraiseassert
๐ฎ Boolean & None
Truth Values & Logic
TrueFalseNoneandornotisin
๐ฆ Import & Module
Module System
importfromas
๐ง Other Keywords
Advanced & Special
withdelasyncawait
๐ฏQuiz Time!
1 of 8
โFAQ
๐Glossary
Essential terms from CBSE Class 11 Computer Science syllabus.