Created
August 2, 2020 20:23
-
-
Save ks--ks/b1741ae84e101ec41174b12f1a6c393f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''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