Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gaganchandan committed Apr 29, 2023
1 parent df87b35 commit e35003b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jarviscli/plugins/jumble.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ def __call__(self, jarvis, s):
dict[sorted_word].append(word)
else:
dict[sorted_word] = [word]
while(True):
jumble = jarvis.input("Enter a jumble to solve or 'quit' to quit:\n")
while (True):
jumble = jarvis.input(
"Enter a jumble to solve or 'quit' to quit:\n")
jumble = jumble.lower()
if(jumble == "quit"):
if (jumble == "quit"):
break
jumble = ''.join(sorted(jumble))
if jumble in dict:
Expand Down

0 comments on commit e35003b

Please sign in to comment.