(Varriables)
varriable एक नाम होता है | जिसके अन्दर values store की जाती है | varriable के नाम को एक container के रुप मे समझा जा सकता है | जैसे :- जिस प्रकार किसी डिबे(box) के अन्दर कोई समान रखा(store) जाता है | उसी प्रकार varriables के अन्दर data store किया जाता है | ये values या data कोई string,float या कोई number इत्यादि हो सकती है | data type के अनुसार variables के अन्दर stored value मे बदलाव किया जा सकता है |
15 1.14 Hello
a,c,st varriables है | जिनके अन्दर values store की गयी है |
Note :
1.varriable case-sensitive होते है | यानि a और A दोनो अलग-अलग है | 2.varriables के नाम मे space का उपयोग नही किया जाता है | space की जगह underscore (_) का उपयोग किया जाता है | 3.variables का नाम underscore (_) या फिर किसी letter से शुरु करे |
Python programming के अन्दर input Output funtion बहुत जरुरी भूमिका निभाते है |
किसी भी प्रोग्राम का मेन काम होता है कि वो program user से कुछ data ले (Input) और बदले
मे (Output)
दे ।
Output
Input के बदले मे मिलने वाला result output कहलाता है |
Python programming के अन्दर output के लिए print() का उपयोग किया जाता है |
Input
जो user देता है | उसे input कहा जाता है | user से data लेने के लिए input() उपयोग किया
जाता है | user
से data output window और input window दोनो पर लिया जा सकता है |
input के लिए Input() का उपयोग किया जाता है |
Enter your name =>shubham Hello shubham Hello World
Comments
अगर user के काम को सरल बनाने की बात हो तो वो comments है | किसी भी code या लाइन को comment करने के बाद वो code या लाइन Python execute नहीं करता। python programming के अन्दर codes को comment करने के लिए # का उपयोग किया जाता है | किसी लाइन के आगे # लगाने पर वो लाइन comment बन जाती है | for example = >
hello word
Docstring (Documentation String)
documentation लिखाने के लिए triple single quotes (''' .... ''') triple double quotes(""" .... """) का इस्तेमाल किया हैं। यानि triple quotes के अन्दर जिस प्रकार String text etc. लिखे जाते है | वो उसी प्रकार print होते है |
/span>Python is the good language. Python is the good language.