Page 1 of 1

Exercise 2: Write a for loop to loop through a list of numbers and use an if statement, that appends each number to a ne

Posted: Fri Apr 29, 2022 7:08 am
by answerhappygod
Exercise 2 Write A For Loop To Loop Through A List Of Numbers And Use An If Statement That Appends Each Number To A Ne 1
Exercise 2 Write A For Loop To Loop Through A List Of Numbers And Use An If Statement That Appends Each Number To A Ne 1 (11.73 KiB) Viewed 27 times
Exercise 2: Write a for loop to loop through a list of numbers and use an if statement, that appends each number to a new list if the number is positive. Use the following list: nums=(1, -2, 3, 4, -9, -100, 23, 45, -1]