Introduction
Text values
Variables
Functions
Summary
27. Exercise 3

Instruction

Awesome! Let's see if you've got what it takes. We're now going to throw a more challenging exercise your way.

Exercise

We've stored a string in the variable person_info. The first character in person_info represents gender (M for man, and W for woman). Extract that character with the help of substr, and store the result in a variable named gender.