Question: Python - Strings . System generates a string . The program will check for odd numbers from the list and double them and print entire
Python Strings System generates a string The program will check for odd numbers from the list and double them and print entire list.
Example
Enter a seed
Output First the list and then double odd numbers only
I did code but its doubling all the list including even
s intinputEnter a seed
y getLists
z leny
print stry
count
while count z:
if yz:
ycount ycount
count
#print stry
else:
ycount ycount
printstry
My output is doubling all list
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
