अब, कोड लिखें हिंदी में ( Python wrapper for hindi language ) Exe in output folder
Because there are many students who don't know proper english . Hindi or any local language is closer to them and they can understand code better if it is in their local language
It is a wrapper around standard python which allows users to type the code in HINDI language
अजगर input_hindi.py
where
- अजगर is the exe in the output folder
- input_hindi.py is any hindi-python code file
example of input_hindi.py
### जादूगर
कम = 1
ज्यादा = 1000
छापो(" १ से १००० के बीच कोई भी एक संख्या दीजिए . मई आपका मन पढ़कर वो संख्या बताऊँगा , बस १० सवालों मई ")
## ये सवाल नो है
सवाल_नो = 1
जब_तक कम < ज्यादा :
छापो (कम ,ज्यादा )
## you will realise that you need the "+1" below...
बीच = (कम + ज्यादा )//2 + 1
परिणाम = input("%d: क्या आपकी संख्या %d से कम हु (y/n)?" % (सवाल_नो , बीच ))
अगर परिणाम.छोटा ()[0] == 'y':
ज्यादा = बीच -1
अन्यथा :
कम = बीच
सवाल_नो = सवाल_नो + 1
छापो ("आपकी संख्या है :", कम)
It simply has a mapping which converts hindi words to their corresponding english words and then runs python interpretor behind the scenes
- Only a few python keywords have their corresponding hindi word
- default packages and methods also need to be converted to hindi
- errors are still shown in english