Create a Python function, called number (LolCaracteres), which takes a LolCaracteres list as a parameter, and which returns a string of characters. The elements of the LolCaracteres list are all of...


please use a picture and your own code for explenations please. thank you


Create a Python function, called number (LolCaracteres), which takes<br>a LolCaracteres list as a parameter, and which returns a string of<br>characters. The elements of the LolCaracteres list are all of type string<br>(str). These strings can contain characters which are positive integers<br>such as '10' or '3' or else characters which are not positive integers<br>(such as letters of alphabets, special characters, etc.).<br>The return string consists of all the elements in the list that are not<br>positive or zero integers, as well as the sum of positive or zero<br>elements. If there is no positive or zero element then this sum will be<br>zero.<br>Use isdigit () to test whether an item in the list is a positive or zero<br>integer. The program should not crash due to type conversions.<br>Respect the type contract of the function: (list) -> str<br>

Extracted text: Create a Python function, called number (LolCaracteres), which takes a LolCaracteres list as a parameter, and which returns a string of characters. The elements of the LolCaracteres list are all of type string (str). These strings can contain characters which are positive integers such as '10' or '3' or else characters which are not positive integers (such as letters of alphabets, special characters, etc.). The return string consists of all the elements in the list that are not positive or zero integers, as well as the sum of positive or zero elements. If there is no positive or zero element then this sum will be zero. Use isdigit () to test whether an item in the list is a positive or zero integer. The program should not crash due to type conversions. Respect the type contract of the function: (list) -> str

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here