Python Hindi Logo
Python in Hindi | Programming Education
Python programming tutorial in Hindi banner Python code learning illustration Hindi Python student coding illustration Python data code pattern background
🇮🇳 Learn Python in Hindi

Python Tutorial in HindiiLearn Python Programming for Free

Learn Python from Beginner to Advanced in simple Hindi. Explore tutorials, projects, interview questions, quizzes, notes, and career guidance—all in one place.

50+
Tutorials
100%
Free
Hindi
Medium
print("Namaste Python!")
# Variable banana
naam = "Ankit"
umar = 25
 
for i in range(3):
  print("Sikho!")
 
# Output:
Sikho! Sikho! Sikho!

Python Keywords in Hindi (2026) – Complete Reserved List with Examples

"Modern minimalist YouTube thumbnail for Python tutorial with all-English text reading 'PYTHON KEYWORDS (2026) - Learn in English All 35 Reserved Words with Examples!' showing a laptop displaying VS Code editor with sample code, glowing effects, and a premium light peach theme."

Python Keywords kya hote hain? Is article me Python ke sabhi reserved keywords ko Hindi me simple language aur practical examples ke saath samjhein. Beginners ke liye complete guide.

Python Keywords in Hindi

Jab maine Python seekhna shuru kiya tha, to sabse pehla confusion yahi hua tha — if = 10 likhne par error kyun aa raha hai? Baad me pata chala ki if koi normal word nahi, balki Python ka reserved keyword hai. Aur tab se yeh cheez clear ho gayi ki koi bhi program likhne se pehle keywords ko samajhna kitna zaroori hai.

Agar aap bhi Python seekhna shuru kar rahe hain ya abhi variables aur basics tak hi pahunche hain, to yeh article aapke liye ek zaroori step hai. Condition likhni ho, loop chalana ho, function banana ho ya class define karni ho — har jagah in keywords ka istemal hota hi hai.

Ek baat clear kar dete hain: Python version ke saath keywords ki sankhya thodi badal sakti hai. Python 3.13 me currently 35 keywords hain — purane versions me yeh number kam ya zyada raha hai.


Python Keywords Kya Hote Hain?

Simple bhasha me kahen to Keywords wo words hain jinka matlab Python interpreter ne pehle se fix kar rakha hai. Isi wajah se inhe variable, function ya class ka naam nahi banaya ja sakta.

Try kariye:

if = 100

Output milega:

SyntaxError: invalid syntax

Aisa isliye hota hai kyunki if Python ki grammar ka hissa hai — aap usko dobara define nahi kar sakte, jaise aap "the" word ko kisi naye meaning me use nahi kar sakte.

Reserved Words aur Keywords — dono term aksar ek hi cheez ke liye use hote hain. if, else, while, for, class, def, return — ye sab isi list ka hissa hain.


Python Keywords Ki Poori List

KeywordKaam kya karta hai
FalseBoolean False value
NoneKoi value nahi
TrueBoolean True value
andLogical AND
asAlias
assertDebugging
asyncAsync function
awaitAsync task ka wait
breakLoop rokna
classClass define karna
continueIteration skip karna
defFunction define karna
delObject delete karna
elifElse If
elseElse block
exceptException handle karna
finallyHamesha execute hone wala block
forLoop
fromSpecific item import karna
globalGlobal variable
ifCondition
importModule import karna
inMembership check
isIdentity check
lambdaAnonymous function
nonlocalOuter scope variable
notLogical NOT
orLogical OR
passKhaali block
raiseException raise karna
returnValue return karna
tryException handling
whileWhile loop
withContext manager
yieldGenerator

Ab in keywords ko ek-ek karke, example ke saath detail me dekhte hain.


Boolean aur Empty Value: False, None, True

Inn teenon ko saath me samajhna aasan hai kyunki teeno kisi na kisi "state" ko represent karte hain.

is_logged_in = False
data = None
is_admin = True

print(is_logged_in)
print(data)
print(is_admin)

Output:

False
None
True

False aur True Boolean values hain — condition sahi hai ya galat, yeh batane ke liye. None thoda alag hai — iska matlab hai "abhi koi value hi nahi hai." Jab aap kisi API se data fetch kar rahe ho aur response abhi aaya hi nahi, tab aksar None hi milta hai.


and, or, not — Logical Keywords

Yeh teeno keyword condition ko combine ya reverse karne ke kaam aate hain.

age = 22
salary = 45000
has_permission = True

print(age > 18 and salary > 30000)   # dono true hone chahiye
print(age >= 18 or has_permission)    # ek bhi true chalega
print(not True)                       # value ulta ho jayegi

Output:

True
True
False

and tabhi True dega jab dono conditions sahi hon, or tab True dega jab in me se koi ek bhi sahi ho, aur not value ko simply ulta kar deta hai.


as Keyword — Alias Banana

Bade module ka naam har baar likhna thakane wala hota hai, isliye as ka use hota hai.

import math as m
print(m.sqrt(64))

Output:

8.0

math ko yahan chhote naam m se access kiya gaya — yeh trick aapko pandas ya numpy jaisi libraries me bhi baar-baar dikhegi (import pandas as pd).


assert Keyword

assert ek chhota sa debugging tool hai — ek condition likh do, agar wo galat nikli to Python khud hi error de dega.

age = 20
assert age >= 18
print("Eligible")

Output:

Eligible

Agar age yahan 15 hoti, to AssertionError aa jata. Testing ke waqt yeh kaafi kaam aata hai.


async aur await Keywords

Yeh dono ek saath chalte hain aur asynchronous programming ke liye use hote hain — matlab jab ek se zyada tasks ko ek saath handle karna ho.

async def welcome():
    print("Welcome")

async def main():
    await welcome()

Shuruaat me yeh thoda advanced lag sakta hai, isliye beginners abhi ke liye sirf itna yaad rakhein ki await sirf async function ke andar hi use hota hai. Jaise-jaise aap Python operators aur functions me comfortable hote jayenge, yeh concept apne aap clear ho jayega.


break aur continue — Loop Control

for number in range(10):
    if number == 5:
        break
    print(number)

Output:

0
1
2
3
4

Number 5 aate hi loop rukk gaya — yahi break ka kaam hai.

Ab isi ko continue se compare karein:

for number in range(5):
    if number == 2:
        continue
    print(number)

Output:

0
1
3
4

Yahan 2 print nahi hua, par loop rukka nahi — continue ne sirf us ek iteration ko skip kiya aur aage badh gaya. Farak samajhna zaroori hai: break loop khatam karta hai, continue sirf ek round miss karta hai.


class Keyword

class Student:
    name = "Rahul"

student = Student()
print(student.name)

Output:

Rahul

class Object-Oriented Programming ki neev hai. Ek class ko blueprint samajhiye — jaise ghar ka naksha, jisse aap kayi ghar (objects) bana sakte hain.


def Keyword

def greet():
    print("Welcome to PythonHindii")

greet()

Output:

Welcome to PythonHindii

Python me har function def se hi shuru hota hai — chahe wo do line ka ho ya do sau line ka.


del Keyword

numbers = [10, 20, 30]
del numbers[1]
print(numbers)

Output:

[10, 30]

List ka second element delete ho gaya. del sirf list elements par hi nahi, kisi bhi variable ya object ko delete karne ke liye use ho sakta hai.


elif aur else Keywords

marks = 78

if marks >= 90:
    print("Grade A")
elif marks >= 70:
    print("Grade B")
else:
    print("Grade C")

Output:

Grade B

elif ka matlab hai "Else If" — jab pehli condition false ho aur aapko ek aur condition check karni ho. Agar sab conditions false ho jayein, tab else wala block chalta hai.


try, except, finally — Exception Handling

Teeno keyword saath me kaam karte hain, isliye inhe ek hi jagah samajhna better hai.

try:
    print(10 / 0)
except ZeroDivisionError:
    print("Zero se divide nahi kar sakte.")
finally:
    print("Program End")

Output:

Zero se divide nahi kar sakte.
Program End

try block me risky code likhte hain, except us error ko pakadta hai jo aa sakta hai, aur finally chahe error aaye ya na aaye, hamesha run hota hai — jaise file close karna ya connection band karna.


for aur while — Dono Tarah Ke Loops

for i in range(1, 6):
    print(i)

Output:

1
2
3
4
5

Aur ab while ka version:

count = 1
while count <= 5:
    print(count)
    count += 1

Output same hi hai, lekin farak yeh hai — for tab use hota hai jab aapko pata ho kitni baar loop chalana hai (jaise ek list ke har item par), aur while tab jab loop kisi condition ke true rehne tak chalna ho.


from Keyword

from math import sqrt
print(sqrt(49))

Output:

7.0

Poora module import karne ki bajaye, sirf jo chahiye wahi import kar liya — code halka rehta hai.


global aur nonlocal Keywords

count = 10

def update():
    global count
    count = 20

update()
print(count)

Output:

20

global keyword na likha jaye to function ke andar ek naya local variable ban jata, aur bahar wala count waisa hi rehta 10 par. nonlocal bhi isi tarah kaam karta hai, bas nested functions ke case me:

def outer():
    number = 5

    def inner():
        nonlocal number
        number = 10

    inner()
    print(number)

outer()

Output:

10

if, in, is Keywords

age = 22
if age >= 18:
    print("You can vote.")

fruits = ["Apple", "Mango", "Banana"]
print("Mango" in fruits)

a = None
print(a is None)

Output:

You can vote.
True
True

if condition check karta hai, in batata hai koi value kisi list/string/dictionary me maujood hai ya nahi, aur is object identity compare karta hai — yeh == se alag hai. == values compare karta hai, jabki is yeh dekhta hai ki dono actually same object hain ya nahi.


import Keyword

import math
print(math.pi)

Output:

3.141592653589793

lambda Keyword

square = lambda x: x * x
print(square(6))

Output:

36

lambda ek chhota, naam-less function banane ka tarika hai — jab kaam ek line ka ho aur poora def likhna zaroori na lage.


pass Keyword

def student():
    pass

Yeh kisi bhi error ke bina run ho jata hai. Jab code ka structure abhi likhna ho par logic baad me daalna ho, tab pass placeholder ka kaam karta hai.


raise Keyword

age = -5

if age < 0:
    raise ValueError("Age cannot be negative.")

Output:

ValueError: Age cannot be negative.

Yahan hum khud apni marzi se ek error generate kar rahe hain — kabhi-kabhi program ko batana zaroori hota hai ki "yeh input galat hai, aage mat badho."


return Keyword

def add(a, b):
    return a + b

print(add(10, 5))

Output:

15

with Keyword

with open("sample.txt", "w") as file:
    file.write("Welcome to PythonHindii")

with block khatam hote hi file automatically close ho jati hai — aapko manually file.close() likhne ki zarurat nahi.


yield Keyword

def numbers():
    yield 1
    yield 2
    yield 3

for value in numbers():
    print(value)

Output:

1
2
3

return function ko turant khatam kar deta hai, jabki yield values ko ek-ek karke deta rehta hai — is tarah ke function ko generator kehte hain.


Keywords Yaad Rakhne Ke Kuch Practical Tips

  • Kabhi bhi keyword ko variable ka naam mat banayein.
  • Har keyword par khud ek chhota program likh kar practice karein — sirf padhne se yaad nahi rehta.
  • Roz thoda-thoda coding karte rahein, ek din me sab yaad karne ki koshish mat karein.
  • Jab confusion ho, official Python documentation check karein.
  • Kisi chhote project me in keywords ko actually use karke dekhein — tabhi asal me samajh aata hai.

Keywords aur Identifiers Me Farak

KeywordIdentifier
Reserved word hota haiAapke dwara banaya gaya naam hota hai
Meaning fixed haiMeaning programmer decide karta hai
Variable name nahi ban saktaVariable, function ya class ka naam ban sakta hai
Jaise: if, for, whileJaise: age, student, total_marks

Interview Me Pooche Jaane Wale Sawal

Python Keywords kya hote hain? Python ke reserved words jo language ke syntax ka hissa hote hain.

Kya Keywords ko variable bana sakte hain? Nahi.

is aur == me kya farak hai? == values compare karta hai, is object identity compare karta hai.

pass keyword kab use hota hai? Jab code block ko temporarily khaali rakhna ho.

yield aur return me kya farak hai? return function ko turant terminate kar deta hai, jabki yield generator ke through values ko ek-ek karke return karta hai.

Aise hi aur 100+ questions ke liye Python Interview Questions section zaroor dekhein.


Frequently Asked Questions

Python me kitne keywords hote hain?

Latest versions me aam taur par 35 reserved keywords hote hain. Purane versions me sankhya thodi alag ho sakti hai.

Reserved Words aur Keywords me kya farak hai? 

Python ke context me dono ka matlab practically ek hi mana jata hai.

Kya keyword ka naam variable rakh sakte hain? 

Nahi, aisa karne par SyntaxError aayega.

Python ki keyword list khud kaise check karein?

Python shell me:

import keyword
print(keyword.kwlist)

Aur total kitne keywords hain, yeh jaanne ke liye:

import keyword
print(len(keyword.kwlist))

Conclusion

Python Keywords kisi bhi program ki neev hain. Ek baar in reserved words ko achhe se samajh liya, to Python seekhna kaafi aasan lagne lagta hai — kyunki har jagah wahi 35 words alag-alag combinations me repeat hote hain.

Agar abhi aapne Python Variables ya Python Operators nahi padha hai, to is series ko wahin se follow karna best rahega — poora roadmap Python Tutorial in Hindi page par milega.


Related Articles

PYTHONHINDII.IN
1 / 5
Suggested Quiz