{"id":42604,"date":"2021-09-06T10:30:00","date_gmt":"2021-09-06T08:30:00","guid":{"rendered":"https:\/\/eiposgrados.com\/?p=42604"},"modified":"2021-10-29T16:03:14","modified_gmt":"2021-10-29T14:03:14","slug":"emojis-with-python","status":"publish","type":"post","link":"https:\/\/eiposgrados.com\/eng\/blog-python\/emojis-con-python\/","title":{"rendered":"Emojis with Python"},"content":{"rendered":"<p>Surely you use emojis very often in your daily life, whether on social networks or in WhatsApp conversations or other chat or messaging apps. And they have become<strong> a whole way of communicating<\/strong>, to show our mood or make us laugh.<\/p>\n\n\n\n<p>As programmers that we are, today we are going to learn to write code that will output those emojis. If you want to learn to program in this versatile and well-known language in the world of programming, the <a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1sYeNK1HQZgfinraUb3AY1BZVq0ckuW4dpkYfsL8GUCk\/edit#gid=110360321\" data-type=\"URL\" data-id=\"https:\/\/docs.google.com\/spreadsheets\/d\/1sYeNK1HQZgfinraUb3AY1BZVq0ckuW4dpkYfsL8GUCk\/edit#gid=110360321\" target=\"_blank\" rel=\"noopener\">Master in Advanced Programming in Python for Hacking, Machine Learning and BigData<\/a>, will give you the necessary skills. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ways to make emojis with Python<\/h2>\n\n\n\n<p>In Python we can use several ways to output emojis.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Unicode<\/strong>.<\/li><li><strong>CLDR names<\/strong>.<\/li><li><strong>emoji module<\/strong>.<\/li><\/ol>\n\n\n\n<p>We leave you an example of the list of emojis but you can see it in full <a href=\"https:\/\/unicode.org\/emoji\/charts\/emoji-list.html\" target=\"_blank\" rel=\"noopener\">here<\/a><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/eiposgrados.com\/wp-content\/uploads\/2021\/09\/emojis-con-python-1024x585.png\" alt=\"\" class=\"wp-image-42606\" width=\"512\" height=\"293\" title=\"\"><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Unicodes<\/h3>\n\n\n\n<p>To use Unicodes, we need to replace \u201c+\u201d with \u201c000\u201d from the Unicodes list.<\/p>\n\n\n\n<p>For example \u201cU + 1F600\u201d would be \u201cU0001F600\u201d and the Unicode prefix with \u201c\\\u201d will print it.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/eiposgrados.com\/wp-content\/uploads\/2021\/09\/emoticonos-python-1024x112.png\" alt=\"\" class=\"wp-image-42607\" width=\"512\" height=\"56\" title=\"\"><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/eiposgrados.com\/wp-content\/uploads\/2021\/09\/output-python.png\" alt=\"\" class=\"wp-image-42608\" width=\"365\" height=\"174\" title=\"\"><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">CLDR names<\/h3>\n\n\n\n<p>The emojis have short CLDR names that can also be used.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/eiposgrados.com\/wp-content\/uploads\/2021\/09\/print-emoji-python.png\" alt=\"\" class=\"wp-image-42609\" width=\"383\" height=\"168\" title=\"\"><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">emoji module<\/h3>\n\n\n\n<p>We can also implement emojis using the emoji module in Python. To install it we just have to run it in the terminal <strong><em>pip install emoji<\/em><\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/eiposgrados.com\/wp-content\/uploads\/2021\/09\/modulo-emoji-con-python.png\" alt=\"\" class=\"wp-image-42610\" width=\"481\" height=\"239\" title=\"\"><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>Today, we teach you how to program emojis with Python in a simple way, since we all use emojis. Do not miss it!<\/p>","protected":false},"author":1,"featured_media":51561,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[407],"tags":[],"class_list":["post-42604","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-python"],"acf":[],"_links":{"self":[{"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/posts\/42604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/comments?post=42604"}],"version-history":[{"count":0,"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/posts\/42604\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/media\/51561"}],"wp:attachment":[{"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/media?parent=42604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/categories?post=42604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eiposgrados.com\/eng\/wp-json\/wp\/v2\/tags?post=42604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}