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
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]