Question: Write a function called mytest ( chars , option ) to check whether string respectively. The input argument option is a keyword argyument with a
Write a function called mytestcharsoption to check whether string respectively. The input argument option is a keyword argyument with a default value alpha. When optinnon alpha, check whether all characters in the string are alphabetic; when option digit, check whether all characters in the string are digits; when option space, check whether all characters in the string are whitespaces.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
