|
1 | 1 | import emoji
|
| 2 | +from regex import F |
2 | 3 | import word2emoji
|
3 | 4 |
|
4 | 5 | # https://pypi.org/project/emoji/ emoji 2.0.0
|
|
26 | 27 | # Sets
|
27 | 28 | # Virtual Environments
|
28 | 29 |
|
29 |
| -print(emoji.emojize(f'Learning Python is :downcast_face_with_sweat: sometimes, and it can even make my head :exploding_head: !!!')) |
| 30 | +print(emoji.emojize(f'Learning Python is :downcast_face_with_sweat: sometimes, and it can even make me feel like :exploding_head: !!!')) |
30 | 31 |
|
31 | 32 | # emojize takes the code and displays the emoji
|
32 | 33 |
|
33 | 34 |
|
34 |
| -lessons = [] |
| 35 | +learning = [] |
35 | 36 | while True:
|
36 | 37 |
|
37 |
| - fundamentals = input(f'Enter a word to describe Fundamentals: ') |
38 |
| - fundamentals = word2emoji(fundamentals) |
| 38 | + word = input(f'Enter a word to describe learning Python: ') |
| 39 | + wordemoji = word2emoji(word) |
| 40 | + wordtwo = input(f'Enter another word: ') |
| 41 | + wordtwoemoji = word2emoji(wordtwo) |
| 42 | + |
| 43 | + |
39 | 44 |
|
40 | 45 | # exceptions = input(emoji.demojize(f'Exceptions + Testing enter an emoji code: \n✅\nor\n❌ '))
|
41 | 46 |
|
42 | 47 | # demojize takes the emoji and displays the code for it
|
43 | 48 |
|
44 |
| - lessons.append ({ |
45 |
| - 'Fundamentals': fundamentals |
| 49 | + learning.append ({ |
| 50 | + 'Learning Python is' : wordemoji, |
| 51 | + 'sometimes, and it can even make me feel like' : wordtwoemoji |
46 | 52 | })
|
47 |
| - |
48 |
| - print(emoji.emojize(str(lessons))) |
| 53 | + |
| 54 | + # The user inputed word is turned into an emoji |
| 55 | + |
| 56 | + emojicode = emoji.demojize(wordemoji) |
| 57 | + emojicodetwo= emoji.demojize(wordtwoemoji) |
| 58 | + |
| 59 | + # The emojis are turned into codes |
| 60 | + |
| 61 | + print(learning, 'Your emoji codes are ',emojicode, 'and ', emojicodetwo) |
| 62 | + |
| 63 | + |
| 64 | + # print(emoji.demojize(wordemoji, wordtwoemoji)) |
49 | 65 |
|
50 | 66 | # if fundamentals == (':check_mark_button:'):
|
51 | 67 | # lessons.append ({
|
|
0 commit comments