Question: Q1: write a function that uses a For Loop to print to the console the type of each element in the functions input parameter. myList
Q1: write a function that uses a For Loop to print to the console the type of each element in the functions input parameter. myList is an example input parameter.
MyList= [a, b, 1, 2, 3, [1, 2, 3]]
Q2: Write the same functionality as number 1, but using a While Loop
MyList= [a, b, 1, 2, 3, [1, 2, 3]]
plz answer it shortly and understandably.
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
