python python tutorial in hindi python data type python variable python operators conditional statements in python python tuple

Identation & Comments

Table of Contents All Chapters 1. Identation in Python 2. Comments in Python      2.1. Single Line Comment      2.2. Multi-Line Comment Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Python String Python List Python Tuple Hamburger Toggle Menu Table of Contents 1. Identation in Python 2. Comments in Python      2.1. Single Line Comment      2.2. Multi-Line Comment Identation & Comments in Hindi python मे Identation & Comments एक basic syntex का part है इसको जाने बिना कोई भी programmer, python मे coding नहीं कर सकता…… Identation in Python in Hindi python के code में indentation देना बहुत ही जरूरी होता है, इससे code के structure समझने में आसानी होती है और बिना indentation से code में error भी आ सकता है।  indentation को देने के लिए हम tab या 4 space का use करते हैं।  Generally code editor में indentation देने की जरूरत नहीं होती यह automatic दे देता है, but ना दे तो हम tab button को press करके दे सकते हैं।  नीचे दिए गए syntax में आप indentation  को अच्छे से समझ सकते हैं।  🐍 identation.py Copy to clipboard 1 2 3 4 5 6 7 def example(name): if name: print(f"Hello, {name}!") else: print("Hello, World!") example("Alice") यहां पर पहले line का code तो start से लिखा है but दूसरी line में हमने कुछ space दिया है इसी को indentation कहते हैं. Comments in Python in Hindi जब हम code editor में code लिखते हैं तो उसका execution होता है but हम चाहते हैं कि इसमें कुछ लाइन ऐसी लिखी हो जिसका execution ना हो तो हम comment का use करते हैं, यह लाइन सिर्फ code को समझने के लिए लिखी जाती है।  python में 2 type के comments होते हैं। 1. Single line comment in Hindi जब हम एक ही लाइन में comment देना चाहते हैं तो single line comment का use करते हैं।  इसके लिए # press करके कुछ भी लिखते हैं तो यह एग्जीक्यूट नहीं होता है।  1. Multi line comment in Hindi जब हमें एक से ज्यादा लाइन में comment लिखना होतो हम multi line comment का use करते हैं, इसके लिए triple quotes ( ‘‘‘ or “““ ) का use करते हैं।  नीचे syntax में single line comment और multi line comment को अच्छे से समझ सकते हैं. 🐍 comments.py Copy to clipboard 1 2 3 4 5 6 7 8 9 # This is a single-line comment print("Hello, Programmer") # This is an inline comment """ This is a multi-line comment It can span multiple lines """ print("Hello, Programmer") उम्मीद करते है कि आपको python मे Identation & Comments का use समझ मे या गया होगा । अपने learning को continue रखने के लिए next button पर click करे, Previous Next Add a comment… Cancel Reply Logged in as Python Programming Hub. Edit your profile. Log out? Required fields are marked * Message*

python python tutorial in hindi python data type python variable python operators conditional statements in python python tuple

Python Introduction

Table of Contents All Chapters 1. Python Introduction 2. History of Python 3. Installing Python 4. First Program   Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Python String Python List Python Tuple Hamburger Toggle Menu Table of Contents 1. Python Introduction 2. History of Python 3. Installing Python 4. First Program Python Introduction in Hindi What is Python in Hindi python एक high level, interpreted और object-oriented programming language है, मतलब इसका उपयोग करने में आसानी होती है और इसमें बहुत ही powerful features है. यह एक general-purpose programming language है मतलब इसका use  कई तरह की काम करने में किया जा सकता है. जैसे :- Web development, data science, automation, artificial intelligence, scripting, etc. History of Python in Hindi python  को Guido van Rossum ने 1980 में develop किया था. python का नाम एक British comedy show “Monty Python’s Flying Circus” से लिया गया था. आज पाइथन एक बहुत famous language बन गया है Installing Python and Setting up in your environment python को अपने system में install और setup करने के लिए video को stepwise fellow करें. अगर आपके पास computer नहीं है तो आप tablet या smartphone में भी python coding सीख सकते हैं, इसके लिए video end तक देखिए. https://youtu.be/fDZAizOsmZg?si=JDFSHB-qgL_34bMC Write your First Code 🐍 hello world.py Copy to clipboard 1 print("Hello, World!") इसमें print एक built-in function है जिसका use output को screen पर display करने के लिए किया जाता है. अब function क्या होता है इसे हम आगे अच्छे से समझेंगे, but अभी के लिए आप इतना जान जाइए की जब भी हमें कुछ screen पर display करना होतो हम print का use करेंगे. उम्मीद करते है कि आपको python operators अच्छे समझ मे आ गया होगा । अपने learning को continue रखने के लिए next button पर click करे, Courses Next Add a comment… Cancel Reply Logged in as Python Programming Hub. Edit your profile. Log out? Required fields are marked * Message*

Scroll to Top