News
Contribute to Kaif995/Loops-in-python-Exercises development by creating an account on GitHub. ... Write a Program to print the elements of the following list using a while loop: [1, 4, 9, 16, 25, 36, ...
#Use the third argument of the range() function to make a list of the odd numbers from 1 to 20. #Use a for loop to print each number ...
#2 create two lists to store all even and odd numbers from 1 to 20 individually even = [] # create a list for even numbers odd = [] # create a list for odd numbers for k in range(1, 21): if k%2 == 0: ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results