|
8 | 8 | import emoji
|
9 | 9 | import word2emoji
|
10 | 10 |
|
11 |
| -# Using emoji package to help describe my understanding of Python lessons: |
| 11 | +# using emoji list adding emoji codes to a string |
12 | 12 |
|
13 | 13 |
|
14 | 14 | print(emoji.emojize(f'Learning Python is :downcast_face_with_sweat: sometimes it can even make me feel like :exploding_head: !!!'))
|
|
24 | 24 | wordtwo = input(f'Enter another word: ')
|
25 | 25 | wordtwoemoji = word2emoji(wordtwo)
|
26 | 26 |
|
27 |
| - |
28 |
| - |
29 | 27 | # word2emoji takes a word and turns it into an emoji
|
30 |
| - |
31 |
| - # emoji.demojize takes the emoji and displays the code for it |
32 | 28 |
|
33 | 29 | learning.append ({
|
34 | 30 | 'Learning Python is' : wordemoji,
|
35 | 31 | 'sometimes it can make me feel like' : wordtwoemoji
|
36 | 32 | })
|
37 | 33 |
|
38 | 34 | # The user inputed word is turned into an emoji
|
| 35 | + |
| 36 | + # emoji.demojize takes the emoji and displays the code for it |
39 | 37 |
|
40 | 38 | emojicode = emoji.demojize(wordemoji)
|
41 | 39 | emojicodetwo= emoji.demojize(wordtwoemoji)
|
42 | 40 |
|
43 | 41 | # The emojis are turned into a message and the codes are displayed to user
|
44 | 42 |
|
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) |
53 | 44 |
|
54 | 45 |
|
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 |
56 | 49 |
|
0 commit comments