Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
'''You have the following list of numbers:
n = [1,2,3,4,5,6]
Iterate over this list, printing out each list value multiplied by 10.'''
#Solution 1:
for x in n:
print (x * 10)
#Solution 2:
for x in range(len(n)):
print (n[x] * 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.