hinglishtohindi

def hinglish_to_hindi(text): hinglish_mapping = { 'a': 'अ', 'b': 'ब', 'c': 'सी', 'd': 'डी', 'e': 'ई', 'f': 'एफ', 'g': 'जी', 'h': 'एच', 'i': 'आई', 'j': 'जे', 'k': 'के', 'l': 'एल', 'm': 'एम', 'n': 'एन', 'o': 'ओ', 'p': 'पी', 'q': 'क्यू', 'r': 'आर', 's': 'एस', 't': 'टी', 'u': 'यू', 'v': 'वी', 'w': 'डबल्यू', 'x': 'एक्स', 'y': 'वाई', 'z': 'जेड' } hindi_text = '' for char in text.lower(): if char in hinglish_mapping: hindi_text += hinglish_mapping[char] else: hindi_text += char return hindi_text # Example usage hinglish_text = 'Namaste, kaise ho?' hindi_text = hinglish_to_hindi(hinglish_text) print(hindi_text)
Newest
Previous
Next Post »