|
Size: 2049
Comment:
|
← Revision 12 as of 2020-07-29 06:38:50 ⇥
Size: 1960
Comment: add better example
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 36: | Line 36: |
| हिन्दी पायथन (Python) पृष्ठों में आपका स्वागत है | हिन्दी पायथन प्रस्थ में आपका स्वागत है |
| Line 40: | Line 40: |
| > # Python 3.0 or greater > name = 'Anubhaw' > def say_greeting(name): > to_say = "Greetings, {0}. How are you?".format(name) > print(to_say) |
# -*- coding: utf-8 -*- # python 3.x |
| Line 46: | Line 43: |
| In Hindi, | बयान1 = 'नमस्ते!' बयान2 = 'मेरा नाम चंकी पाठक है!' बयान3 = 'मैं भारत से हूँ ' |
| Line 48: | Line 47: |
| > def Namaste('Anubhaw'): > kaho = "Namaste, {0}. Kaise hain?".format('Anubhaw') > print(kaho) |
वाक्य = [बयान1, बयान2, बयान3] |
| Line 52: | Line 49: |
| > def नमस्ते(अनुभव): > कहो = "नमस्ते, {0}. कैसे हैं?".format(अनुभव): > print(कहो) |
for बयान in वाक्य: print(बयान) |
Links to Python information in Hindi
ISO 639-1 Code: hi
हिन्दी
http://hi.wikipedia.org/wiki/मुखपृष्ठ
हिन्दी पायथन प्रस्थ में आपका स्वागत है
# -*- coding: utf-8 -*-
# python 3.x
बयान1 = 'नमस्ते!'
बयान2 = 'मेरा नाम चंकी पाठक है!'
बयान3 = 'मैं भारत से हूँ '
वाक्य = [बयान1, बयान2, बयान3]
for बयान in वाक्य:
print(बयान)