Challenge 1: REPL with IO Monad

Test your knowledge by writing REPL code for a problem related to the IO monad.

Problem statement

Write a simple REPL using the IO monad that reads user input and outputs its uppercase version.

Expected behavior of the REPL

Sample input 1

>>> i am PHP developer

Expected output

I AM PHP DEVELOPER

Sample input 2

>>> functional programming

Expected output

FUNCTIONAL PROGRAMMING

Try it yourself

Get hands-on with 1200+ tech skills courses.