Question: Evaluation Question 2: Write a piece of Python code that forms a string out of the integer elements of a list based on their values.
Evaluation Question 2: Write a piece of Python code that forms a string out of the integer elements of a list based on their values. It will add even numbers add the beginning of the string and odd numbers at the end. For example. [1. 2. 3. 4) should be transformed into '4213' or [2.3.5.1.6) should be transformed into '62351'. You can assume that the lists are not nested. You do not have to take input from user for this question, you can just define a list yourself. Do not write a function for this question! Do not use insert for this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
