From d8a6fa3f348ca20c299ccd739937890811a84a18 Mon Sep 17 00:00:00 2001 From: Jaspreet Singh <44704071+singh-jp-7@users.noreply.github.com> Date: Sat, 12 Oct 2019 16:34:39 +0530 Subject: [PATCH] Update app1.py --- app1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)