File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
# emojize takes the code and displays the emoji
17
17
18
+ def user_prompt_get_emoji (phrase ):
19
+ word = input (phrase )
20
+ wordemoji = word2emoji (word )
21
+ return wordemoji
18
22
23
+ # deployed a function to take the user input for the emoji
19
24
learning = []
20
25
while True :
26
+ wordemoji = user_prompt_get_emoji ('Enter a word to describe learning Python: ' )
21
27
22
- word = input (f'Enter a word to describe learning Python: ' )
23
- wordemoji = word2emoji (word )
24
- wordtwo = input (f'Enter another word: ' )
25
- wordtwoemoji = word2emoji (wordtwo )
28
+ # word = input(f'Enter a word to describe learning Python: ')
29
+ # wordemoji = word2emoji(word)
30
+ wordtwoemoji = user_prompt_get_emoji ('Enter another word: ' )
26
31
27
32
# word2emoji takes a word and turns it into an emoji
28
33
You can’t perform that action at this time.
0 commit comments