Skip to main content

🇯🇵 1a - Printing Japanese Emoticons

Hello everyone, by the end of this section, you will learn how to create a program that 'texts' you cute Japanese emoticons!

Kaomojis (顔文字) are Japanese Emoticons that can be created a set combining different characters from characters available in our computer. Here a list of emoticons extracted from this website.


(* ^ ω ^) (´ ∀ ` *) ٩(◕‿◕。)۶ ☆*:.。.o(≧▽≦)o.。.:*☆
(o^▽^o) (⌒▽⌒)☆ <( ̄︶ ̄)> 。.:☆*:・'(*⌒―⌒*)))
ヽ(・∀・)ノ (´。• ω •。`) ( ̄ω ̄) `;:゛;`;・(°ε° )
(o・ω・o) (@^◡^) ヽ(*・ω・)ノ (o_ _)ノ彡☆
(^人^) (o´▽`o) (*´▽`*) 。゚( ゚^∀^゚)゚。
( ´ ω ` ) (((o(*°▽°*)o))) (≧◡≦) (o´∀`o)
(´• ω •`) (^▽^) (⌒ω⌒) ∑d(°∀°d)
╰(▔∀▔)╯ (─‿‿─) (*^‿^*) ヽ(o^ ^o)ノ
(✯◡✯) (◕‿◕) (*≧ω≦*) (☆▽☆)
(⌒‿⌒) \(≧▽≦)/ ヽ(o^▽^o)ノ ☆ ~('▽^人)
(*°▽°*) ٩(。•́‿•̀。)۶ (✧ω✧) ヽ(*⌒▽⌒*)ノ
(´。• ᵕ •。`) ( ´ ▽ ` ) ( ̄▽ ̄) ╰(*´︶`*)╯
ヽ(>∀<☆)ノ o(≧▽≦)o (☆ω☆) (っ˘ω˘ς )
\( ̄▽ ̄)/ (*¯︶¯*) \(^▽^)/ ٩(◕‿◕)۶
(o˘◡˘o) \(★ω★)/ \(^ヮ^)/ (〃^▽^〃)
(╯✧▽✧)╯ o(>ω<)o o( ❛ᴗ❛ )o 。゚(TヮT)゚。
( ‾́ ◡ ‾́ ) (ノ´ヮ`)ノ*: ・゚ (b ᵔ▽ᵔ)b (๑˃ᴗ˂)ﻭ
(๑˘︶˘๑) ( ˙꒳​˙ ) (*꒦ິ꒳꒦ີ) °˖✧◝(⁰▿⁰)◜✧˖°
(´・ᴗ・ ` ) (ノ◕ヮ◕)ノ*:・゚✧ („• ֊ •„) (.❛ ᴗ ❛.)
(⁀ᗢ⁀) (¬‿¬ ) (¬‿¬ ) (* ̄▽ ̄)b
( ˙▿˙ ) (¯▿¯) ( ◕▿◕ ) \(٥⁀▽⁀ )/
(„• ᴗ •„) (ᵔ◡ᵔ) ( ´ ▿ ` )

Introduction Exercise

Printing your first Japanese Emoticon.

Write a program that prints: (*¯︶¯*)

🧪 See/try the Solution
Class Exercise
  • Please modify code above a with a different emoticon! You are allowed to copy-paste, you don't need to type in the specific characters to print that face.

Printing Special Characters

A trickier problem.

Write a program that prints: /( ̄▽ ̄)\

  • Note how in python there are some characters that when printing, we need to escape them (for example: \).
  • That's why on the following example, instead of only having one \ there are 2 of them \\
🧪 See/try the Solution

Exercise

Fix the following Emoticon printer

In this program we are trying to print the following emoticon: \>\▽\<\

The following program throws an error:

print("\>\▽\<\")
  • Do you think you can figure out why?

View in Trinket

🔨 Try fixing it here!