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
write a fuction called examinList(xs)that takes a list of strings called xs and examines the value.if the values are al
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am