write a fuction called examinList(xs)that takes a list of strings called xs and examines the value.if the values are al

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

write a fuction called examinList(xs)that takes a list of strings called xs and examines the value.if the values are al

Post by answerhappygod »

write a fuction called examinList(xs)that takes a list of
strings called xs and examines
the value.if the values are all strings 8 letters long or less,
this function does not
return anyting.However if the list contans an numeric
value,this function handles this
error by returning a-1 . if the list contains a string value
that is longer than 8
, letters long , this function function handles this error by
returning the string
'value too long' .
you must use raise and try/except
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply