Skip to content

Commit aa68d34

Browse files
committed
Mini capstone playing with packages
1 parent 200289a commit aa68d34

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

code/kelin/labs/mini_capstone.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import emoji
2+
import word2emoji
23

34
# https://pypi.org/project/emoji/ emoji 2.0.0
45
# pip install emoji
@@ -33,8 +34,10 @@
3334
lessons = []
3435
while True:
3536

36-
fundamentals = input(emoji.demojize(f'Fundamentals enter an emoji code: \n\nor\n❌ '))
37-
exceptions = input(emoji.demojize(f'Exceptions + Testing enter an emoji code: \n\nor\n❌ '))
37+
fundamentals = input(f'Enter a word to describe Fundamentals: ')
38+
fundamentals = word2emoji(fundamentals)
39+
40+
# exceptions = input(emoji.demojize(f'Exceptions + Testing enter an emoji code: \n✅\nor\n❌ '))
3841

3942
# demojize takes the emoji and displays the code for it
4043

0 commit comments

Comments
 (0)