What will print?
numbers = [2, 4, 6, 8] for x in numbers: x = x/2 print "This loop will repeat " + str(x) + " times"
Be sure to include comments as you code, explaining 1) what are you trying to do 2) where did you get stuck and 3) how you got unstuck.
Looping through lists
numbers = [2, 4, 244, 24, 13, 44, 53]
There are multiple ways to solve these problems. Talk to you neighbors. Look at my starter code. Comment your work!
🗜 Write a for loop to print only the odd numbers from this list
list = [3,4,7,13,54,32,653,256,1,41,65,83,92,31]
🗜 Write code that prints out only the factors of a number input
number = input("What number would you like the factors of? \n")
🗜 Countdown Write code that counts down from any number
n= input("What number would you like me to start at? \n")