Skip to content

Commit a22af12

Browse files
committed
worked on mini cap
1 parent ce90825 commit a22af12

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

code/kelin/labs/mini_capstone.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@
1515

1616
# emojize takes the code and displays the emoji
1717

18+
def user_prompt_get_emoji(phrase):
19+
word = input(phrase)
20+
wordemoji = word2emoji(word)
21+
return wordemoji
1822

23+
# deployed a function to take the user input for the emoji
1924
learning = []
2025
while True:
26+
wordemoji = user_prompt_get_emoji('Enter a word to describe learning Python: ')
2127

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: ')
2631

2732
# word2emoji takes a word and turns it into an emoji
2833

0 commit comments

Comments
 (0)