Question: Create a Python program two_functions.py containing two functions: A function list_of_chars (s) that returns a list with all the characters in the input string
Create a Python program two_functions.py containing two functions: A function list_of_chars (s) that returns a list with all the characters in the input string s. For example, input string "Jonas" should return the list ['J', 'o', 'n', 'a', 's']. A function is_increasing (1st) that returns True if the integer list 1st is a strictly increasing sequence of integers, otherwise False. That is, [1, 3, 4, 7, 8] returns True whereas both [1, 3, 1, 5] and [2, 2, 2, 7] return False. Also, add program code that demonstrates how the two functions can be used.
Step by Step Solution
3.36 Rating (152 Votes )
There are 3 Steps involved in it
The code is as follow Function to return a list with all characters ... View full answer
Get step-by-step solutions from verified subject matter experts
