-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprint-emoji.py
34 lines (26 loc) · 981 Bytes
/
print-emoji.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# To print emojis in python, install the emoji module using pip(usually better in a virtual env)
#run 'pip install emoji'
# use the 'emoji.emojize' mthd and write the description of any emoji inside ::
# 1. :thumbs_up:
# 2. :red_heart:
# 3. :smiling_face:
# import emoji
# print(emoji.emojize("I love reading books :books:"))
# print(emoji.emojize("Some people have a very sensitive heart :red_heart:, please be kind with them.:hibiscus:"))
the_sum = [9, 41, 12, 3, 74, 15]
largest_so_far = -1
print('Before', largest_so_far)
for largest in the_sum:
if largest > largest_so_far:
largest_so_far = largest
print('Largest number is: ', largest_so_far)
# Finding smallest number by first capturing the first value from the set
the_number = [9, 41, 12, 3, 74, 15]
smallest = None
print('Before')
for small in the_number:
if smallest is None:
smallest = small
elif small < smallest:
smallest = small
print('The smallest number is ', smallest)