Comments in Python in hindi | Python Notes in hindi language

Comments in Python in hindi | Python Notes in hindi language

Comments in Python 

जब भी हम कोई प्रोग्राम बनाते है तब हमे तो यह पता होता है कि प्रोग्राम किस बारे में है लेकिन सामने वाले यूजर को नही पता होता है तब हम उसे कमेंट्स के ज़रिये ये समझाते है की प्रोग्राम किस बारे में लिखा गया है साथ हम किसी विशेष लाइन पर कमेंट्स कर सकते है | कमेंट्स को प्रोग्राम का हिस्सा नही माना जाता है यह केवल समझने के लिए लिखे जाते है |

(Whenever we make a program, then we know what the program is about, but the user in front does not know, then we explain to him through comments that what the program is written about as well as we do not know about any particular program. You can comment on line. Comments are not considered as part of the program, they are written for understanding only.)


पाइथन में कमेंट्स कैसे लगायें?
(How to post comments in Python?)

पाइथन में कमेंट्स हम " # " की मदद से लगा सकते है | जब भी अपको प्रोग्राम के बाहर किसी को कुछ समझाने के लिए लिखना हो तो आप कमेंट्स कर सकत है | 

(In Python, we can put comments with the help of " # ". Whenever you have to write to explain something to someone outside the program, then you can comment.)

जैसे 

comments in python in hindi


# this is comments

Program 

printf("Hello World \n Welcome TO GNB blog")  #\n For New Line 

जैसे दिए गये उदहारण में user को \n का मतलब समझाने के लिए हमने # का उपयोग कर कमेंट् लगा दिया है |

अब यह कमेंट्स कम्पाइलर द्वारा इगनोर कर दी ज़ाय्र्गी और आउटपुट में केवल 

Hello World 

Welcome to GNB blog 

लिखा दिखाई देगा | 

आप शॉर्टकट key से भी कमेंट्स लगा सकते है इसके लिए कीबोर्ड पर ctrl + \  को दबाएँ | 

Next - Python Data Types in Hindi

Pre.- Python me Variable kiya hote hai?


पिछली पोस्ट - पायथन का परिचय 

पिछली पोस्ट - पाइथन की विशेषताए क्या है?

पिछली पोस्ट - python , vs code, gitbash कैसे डाउनलोड करें?

पिछली पोस्ट - पाइथन में कोडिंग कैसे करें?

Please Do Not Enter Any Spam Link in The Comments Box

Post a Comment (0)
Previous Post Next Post