Skip to content

Commit f1e2db0

Browse files
committed
mini capstone final presentation
1 parent cc3f308 commit f1e2db0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

code/kelin/labs/emojicodes.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:monkey::hammer:

code/kelin/labs/mini_capstone.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def user_prompt_get_emoji(phrase):
2727

2828
# word = input(f'Enter a word to describe learning Python: ')
2929
# wordemoji = word2emoji(word)
30+
3031
wordtwoemoji = user_prompt_get_emoji('Enter another word: ')
3132

3233
# word2emoji takes a word and turns it into an emoji
@@ -45,10 +46,18 @@ def user_prompt_get_emoji(phrase):
4546

4647
# The emojis are turned into a message and the codes are displayed to user
4748

48-
print(learning, 'Your emoji codes are ',emojicode, 'and ',emojicodetwo)
49-
49+
print(learning, 'The text consists of 2 emoji codes and their translations.', emojicode, 'and', emojicodetwo, emoji.emojize(emojicode), emoji.emojize(emojicodetwo))
50+
51+
with open('emojicodes.csv', 'w') as emojicodefile:
52+
emojicodefile.write(emojicode)
53+
emojicodefile.write(emojicodetwo)
54+
55+
# write the user emoji codes to a csv file
5056

5157
# Add support for entering own emoji codes to display
5258

5359
# Add support for all emoji codes
5460

61+
62+
# find support for AI generated content
63+

0 commit comments

Comments
 (0)