Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In python, please help 3. Implement the function firstCharsO that takes a list of strings as a parameter and prints to the screen the first
In python, please help
3. Implement the function firstCharsO that takes a list of strings as a parameter and prints to the screen the first character of each string, one per line. If the list provided as a parameter is empty, the function prints a message to that effect. If any of the strings are empty, they are skipped in the display. The information below shows how you would call the function firstChars and what it would display for a couple of parameters: file:llIUsers/bmaya/Documents/DePaul Teaching/2017_SQ/csc241F2017Hws/assign2 html 2/3 1/11/2018 Assignment 2 CSC 241-801 Le Python 3.6.2 Shell File Edit Shell Debug Options Window Help >>>tirstchars([' Python,Java "R", JavaScript']) >>> firstChars('co''horse' 'pig', sheep', chicken']) >>> firstChars (Djengo' , ' Gertrude' , '- ' prudence' ) >>> firstChars (]) The list provided as a parameter vas empty Ln: 43 Col: 4
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started