Skip to content

Commit 200289a

Browse files
committed
Working on mini capstone
1 parent be2c643 commit 200289a

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

code/kelin/labs/mini_capstone.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import emoji
2+
3+
# https://pypi.org/project/emoji/ emoji 2.0.0
4+
# pip install emoji
5+
# emoji list https://carpedm20.github.io/emoji/
6+
7+
# Using emoji package to help describe my understanding of Python lessons:
8+
# Fundamentals
9+
# Exceptions + Testing
10+
# Numbers + Arithmetic
11+
# Booleans + Comparisons + Conditionals
12+
# Imports + Modules + Packages
13+
# Random
14+
# While + For Loops
15+
# Strings
16+
# Lists + Tuples
17+
# Functions
18+
# Dictionaries
19+
# Regular Expressions in Python
20+
# Datetimes
21+
# Classes
22+
# Requests
23+
# Docstrings
24+
# File IO
25+
# Sets
26+
# Virtual Environments
27+
28+
print(emoji.emojize(f'Learning Python is :downcast_face_with_sweat: sometimes, and it can even make my head :exploding_head: !!!'))
29+
30+
# emojize takes the code and displays the emoji
31+
32+
33+
lessons = []
34+
while True:
35+
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❌ '))
38+
39+
# demojize takes the emoji and displays the code for it
40+
41+
lessons.append ({
42+
'Fundamentals': fundamentals
43+
})
44+
45+
print(emoji.emojize(str(lessons)))
46+
47+
# if fundamentals == (':check_mark_button:'):
48+
# lessons.append ({
49+
# 'Fundamentals': fundamentals
50+
# })
51+
# else if fundamentals == (':cross_mark:')
52+
# lessons.append ({
53+
# 'Fundamentals': fundamentals
54+
# })
55+
56+
# exceptions = input(emoji.demojize(f'Exceptions + Testing enter ✅ if reviewed: '))
57+
# if exceptions == (':check_mark_button:'):
58+
# lessons.append ({
59+
# 'Exceptions + Testing': exceptions
60+
# })
61+
# else:
62+
# print('Please review Exceptions + Testing')
63+
64+
# print(emoji.emojize(str(lessons)))
65+
66+
67+
# Fundamentals\nExceptions + Testing\nNumbers + Arithmetic\nBooleans + Comparisons + Conditionals\nImports + Modules + Packages\nRandom\nWhile + For Loops\nStrings\nLists + Tuples\nFunctions\nDictionaries\nRegular Expressions in Python\nDatetimes\nClasses\nRequests\nDocstrings\nFile IO\nSets\nVirtual Environments\n\nEnter a lesson to see my description: ')
68+
69+
# if lesson == 'Fundamentals':
70+
# print(emoji.emojize(f'Fundamentals :school: is about different data types from strings :COOL_button: to integers :input_numbers: and also goes over dictionaries and lists.'))
71+
# elif lesson == 'Exceptions':
72+
# print(emoji.emojize(f'Exceptions and Testing :test_tube: is about Python finding errors in your code and giving you a message :spiral_notepad:" including the line :pencil:" the error occured on.'))
73+
# elif lesson == 'Numbers':
74+
# print(emoji.emojize(f'Numbers and Arithmetic :input_numbers: in Python is about different types of numbers from Integers to Floats and mathematical operations to get a result from those numbers'))
75+
76+
# lessons.append ({
77+
# 'Fundamentals': fundamentals})
78+
79+
80+
81+
# variable = pippackage.getpipthing('parameters')
82+
83+
# print(variable)

0 commit comments

Comments
 (0)