Practical Coding in Python

Learn to write and validate your own code

Darren Kessner, PhD

(revised September 1, 2025)

Previous: Exercises: Installing and using libraries

Hello emoji

#
# hello_emoji.py
#


# Installation: 'emoji' in requirements.txt


from emoji import *


names = [
    ':robot:',
    ':pile_of_poo:',
    ':cat:',
    ':cat_face:',
    ':grinning_cat:',
    ':grinning_face:',
    ':upside-down_face:',
    ':nerd_face:',
    ':skull_and_crossbones:',
    ':person_cartwheeling:',
    ':person_juggling:',
    ':person_in_lotus_position:',
    ':circus_tent:',
    ':roller_skate:',
]
    
for name in names:
    print(name, emojize(name))


Next: