YUNOVA · Python programming
Module 1: Getting Started
Python kya hai aur kahan use hota hai
Key points
- Python एक programming language है जिससे आप computer को काम करने के निर्देश देते हैं।
- इसका code पढ़ने में आसान होता है, इसलिए शुरुआत करने वालों के लिए यह अच्छा है।
- Python से data का काम, automation, web app और machine learning सब होता है।
Python aur VS Code install kaise kare
Key points
- Python को python.org से download करके install करें, और Add to PATH ज़रूर चुनें।
- VS Code एक free editor है जिसमें आप Python code लिखते और चलाते हैं।
- VS Code में Python extension install करें, तभी code चलाना आसान होता है।
Python me print() statement
Key points
- print() से आप screen पर कुछ भी दिखा सकते हैं। यही सबसे पहला command है।
- print में text को quotes में लिखते हैं; number को quotes की ज़रूरत नहीं।
- एक print() में comma लगाकर कई चीज़ें एक साथ दिखाई जा सकती हैं।
Python me comment aur indentation
Key points
- # से शुरू होने वाली line comment होती है; Python उसे नहीं चलाता।
- Comment आप अपने लिए लिखते हैं, ताकि बाद में code समझ आए।
- शुरू की space बहुत मायने रखती है; ग़लत space पर error आता है।