Python Keywords in Hindi ๐ฅ | 35 Python Keywords Explained with Examples | Episode 15
```html
Python Keywords เคा Complete Guide - 35 Keywords เคी เคตिเคธ्เคคृเคค เคต्เคฏाเค्เคฏा
Python เคเค powerful programming language เคนै เคो beginners เคเคฐ professionals เคฆोเคจों เคे เคฒिเค ideal เคนै। Python เคฎें เคुเค reserved words เคนोเคคे เคนैं เคिเคจ्เคนें Keywords เคเคนा เคाเคคा เคนै। เคฏे keywords เคा เค เคชเคจा specific meaning เคนोเคคा เคนै เคเคฐ เคเคจ्เคนें variable names เคฏा identifiers เคे เคฐूเคช เคฎें use เคจเคนीं เคिเคฏा เคा เคธเคเคคा।
เคเคธ comprehensive guide เคฎें เคนเคฎ Python เคे เคธเคญी 35 important keywords เคो เคธเคฎเคेंเคे เคเคฐ เคเคจเคे practical examples เคฆेเคेंเคे।
Python Keywords เค्เคฏा เคนैं?
Keywords เคเคธे reserved words เคนोเคคे เคนैं เคिเคจเคा Python language เคฎें pre-defined meaning เคนोเคคा เคนै। เคฏे words Python เคे syntax เคเคฐ semantics เคो define เคเคฐเคคे เคนैं। เคช्เคฐเคค्เคฏेเค keyword เคा เคเค specific purpose เคนोเคคा เคนै।
เคฎुเค्เคฏ เคฌाเคคें:
- Keywords เคो variable names เคฎें use เคจเคนीं เคเคฐ เคธเคเคคे
- Keywords case-sensitive เคนोเคคे เคนैं
- Python เคฎें 35 keywords เคนोเคคे เคนैं
- เคจเค Python versions เคฎें เคเคญी-เคเคญी เคจเค keywords add เคนोเคคे เคนैं
Python เคฎें เคธเคญी Keywords เคो เคैเคธे เคฆेเคें?
Python เคฎें keyword module เคा use เคเคฐเคे เคธเคญी keywords เคो เคฆेเค เคธเคเคคे เคนैं:
```python import keyword print(keyword.kwlist) print(keyword.iskeyword('if')) # True print(keyword.iskeyword('hello')) # False ```Python Keywords เคी เคตिเคธ्เคคृเคค เคต्เคฏाเค्เคฏा - Category wise
1. Control Flow Keywords
if, elif, else: Conditional statements เคे เคฒिเค use เคนोเคคे เคนैं।
```python age = 18 if age >= 18: print("เคเคช Adult เคนैं") elif age >= 13: print("เคเคช Teenager เคนैं") else: print("เคเคช Child เคนैं") ```for, while: Looping เคे เคฒिเค use เคนोเคคे เคนैं।
```python # for loop for i in range(5): print(f"Number: {i}") # while loop count = 0 while count < 3: print(f"Count: {count}") count += 1 ```break, continue: Loop control เคे เคฒिเค।
```python # break for i in range(10): if i == 5: break print(i) # 0 เคธे 4 เคคเค print เคนोเคा # continue for i in range(5): if i == 2: continue print(i) # 2 เคो skip เคเคฐेเคा ```2. Function and Class Keywords
def: Function define เคเคฐเคจे เคे เคฒिเค।
```python def greet(name): """เคฏเคน function greeting เคฆेเคคा เคนै""" return f"เคจเคฎเคธ्เคคे, {name}!" result = greet("เคฐाเค") print(result) # เคจเคฎเคธ्เคคे, เคฐाเค! ```class: Class define เคเคฐเคจे เคे เคฒिเค।
```python class Student: def __init__(self, name, roll): self.name = name self.roll = roll def display(self): print(f"เคจाเคฎ: {self.name}, เคฐोเคฒ: {self.roll}")
เคोเค เคिเคช्เคชเคฃी เคจเคนीं:
เคเค เคिเคช्เคชเคฃी เคญेเคें