diff --git a/app1.py b/app1.py index 20127eb..220784c 100644 --- a/app1.py +++ b/app1.py @@ -4,6 +4,8 @@ data = json.load(open("data.json")) def translate(w): + + """function for translation""" w = w.lower() if w in data: return data[w] @@ -24,7 +26,7 @@ def translate(w): else: print("Word is not exist") - +"""Taking input fom the user and then displaying the result""" word = input("Enter Word:") output = translate(word)