๐ Python Keywords Explained
| เคเคธाเคจ เคนिंเคฆी เคเคฐ English เคฎें |
Welcome to your Python learning journey!
Python is a powerful and beginner-friendly programming language. One of the first things you should understand are keywords — special reserved words that Python uses for specific purposes.
๐ What Are Python Keywords? | Python Keywords เค्เคฏा เคนोเคคे เคนैं?
English:
Keywords are reserved words in Python that have special meaning. You cannot use them as variable names. They are the building blocks of Python syntax.
เคนिंเคฆी:
Keywords เคตो เคถเคฌ्เคฆ เคนोเคคे เคนैं เคिเคจ्เคนें Python เคจे เคชเคนเคฒे เคธे เคเค เคाเคธ เคाเคฎ เคे เคฒिเค เคฐिเค़เคฐ्เคต เคเคฐ เคฐเคा เคนै। เคเคจ्เคนें เคเคช variable เคे เคจाเคฎ เคी เคคเคฐเคน เคเคธ्เคคेเคฎाเคฒ เคจเคนीं เคเคฐ เคธเคเคคे।
๐ List of Common Python Keywords | Python เคे เคुเค เคเคฎ Keywords
| Keyword | Meaning (English) | เคฎเคคเคฒเคฌ (เคนिंเคฆी เคฎें) |
|---|---|---|
if | Used for conditional statements | เค เคเคฐ เคोเค เคถเคฐ्เคค เคชूเคฐी เคนो |
else | Used when if condition is false | เค เคเคฐ เคถเคฐ्เคค เคชूเคฐी เคจ เคนो |
elif | Else if – another condition | เคฆूเคธเคฐी เคถเคฐ्เคค |
for | Loop through items | เคฒूเคช เคเคฒाเคจे เคे เคฒिเค |
while | Loop while condition is true | เคเคฌ เคคเค เคถเคฐ्เคค เคธเคนी เคนै |
break | Exit the loop | เคฒूเคช เคธे เคฌाเคนเคฐ เคจिเคเคฒเคจा |
continue | Skip to next loop iteration | เค เคเคฒी เคฒूเคช เคชเคฐ เคाเคจा |
def | Define a function | เคซंเค्เคถเคจ เคฌเคจाเคจा |
return | Return value from function | เคซंเค्เคถเคจ เคธे เคตैเคฒ्เคฏू เคฒौเคाเคจा |
import | Import a module | เคिเคธी module เคो เคฒाเคจा |
class | Define a class | เค्เคฒाเคธ เคฌเคจाเคจा |
๐ง Example Code | เคเคฆाเคนเคฐเคฃ เคोเคก
# English: This function checks if a number is even
# เคนिंเคฆी: เคฏเคน เคซंเค्เคถเคจ เคेเค เคเคฐเคคा เคนै เคि เคจंเคฌเคฐ even เคนै เคฏा เคจเคนीं
def is_even(number):
if number % 2 == 0:
return True
else:
return False
๐ฏ Tips to Remember | เคฏाเคฆ เคฐเคเคจे เคे เคฒिเค เคिเคช्เคธ
- ✅ Keywords are case-sensitive (
ifis not the same asIf) - ✅ You can’t use keywords as variable names
- ✅ Practice using them in small programs
๐ Final Thoughts | เคเค़िเคฐी เคฌाเคค
English:
Mastering Python keywords is the first step toward writing clean and effective code. Keep practicing and experimenting!
เคนिंเคฆी:
Python keywords เคो เคธเคฎเคเคจा เคเคชเคी เคोเคกिंเค เคी เคถुเคฐुเคเคค เคนै। เคฐोเค़ เคฅोเคก़ा-เคฅोเคก़ा เคช्เคฐैเค्เคिเคธ เคเคฐें เคเคฐ เคจเค เคช्เคฐोเค्เคฐाเคฎ เคฌเคจाเคं।
Comments
Post a Comment