DRAFT DRAFT

This is a draft

Emoji

A function with emoji

Today, we are going to write a function named emoji= that returns an emoji:

  1. 😃 when two things are equal
  2. 😡 when two things are not equal
(def emoji= #(if (= %1 %2) (quote 😃 ) (quote 😡)))
(emoji= (* 2 2) 4)
(emoji= (* 2 3) 7)

Exercises

A. Ask the computer if it is true that 7 times 6 is greater than 40:

()

B. Is it true that 5 and 7 is less than 13?

()

C. Is it true that 3 times 4 is 12?

()

D. Is it true that 3 times 6 equals 10 and 8?

()

E. Is it true that 7 times 7 is greater than 10 times 6?

()

Send us a screenshot with your programs to viebel@gmail.com.