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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 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 ne
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]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!