Skip to content

Commit cda4522

Browse files
committed
Mini cap getting done
1 parent 091eee0 commit cda4522

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

code/kelin/labs/mini_capstone.py

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import emoji
99
import word2emoji
1010

11-
# Using emoji package to help describe my understanding of Python lessons:
11+
# using emoji list adding emoji codes to a string
1212

1313

1414
print(emoji.emojize(f'Learning Python is :downcast_face_with_sweat: sometimes it can even make me feel like :exploding_head: !!!'))
@@ -24,33 +24,26 @@
2424
wordtwo = input(f'Enter another word: ')
2525
wordtwoemoji = word2emoji(wordtwo)
2626

27-
28-
2927
# word2emoji takes a word and turns it into an emoji
30-
31-
# emoji.demojize takes the emoji and displays the code for it
3228

3329
learning.append ({
3430
'Learning Python is' : wordemoji,
3531
'sometimes it can make me feel like' : wordtwoemoji
3632
})
3733

3834
# The user inputed word is turned into an emoji
35+
36+
# emoji.demojize takes the emoji and displays the code for it
3937

4038
emojicode = emoji.demojize(wordemoji)
4139
emojicodetwo= emoji.demojize(wordtwoemoji)
4240

4341
# The emojis are turned into a message and the codes are displayed to user
4442

45-
learningprint = pprint.Pre(learning)
46-
47-
print(learningprint, 'Your emoji codes are ',emojicode, 'and ',emojicodetwo)
48-
49-
useremoji = emoji.emojize(emojicode)
50-
useremojitwo = emoji.emojize(emojicodetwo)
51-
52-
print('Learning Python is', useremoji, 'sometimes it can me me feel like', useremojitwo)
43+
print(learning, 'Your emoji codes are ',emojicode, 'and ',emojicodetwo)
5344

5445

55-
# Add support for entering own emoji codes
46+
# Add support for entering own emoji codes to display
47+
48+
# Add support for all emoji codes
5649

0 commit comments

Comments
 (0)