Question: Write ( define ) a function named get _ first, that takes one argument ( you can safely assume that arguments will always be a

Write (define) a function named get_first, that takes one argument (you can safely assume that arguments will always be a str with a length of at least one). When this function is called, it should return a str that contains only the first character in the argument.
Examples:
get_first('Hello!') will return 'H'
get_first('one two three') will return 'o'
get_first('abcdefg') will return 'a'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!