Saturday, August 9, 2014

Day 126

Python at CodeCademy. Worked on Python tutorial 8 of 14, Python Lists and Dictionaries: For One and All! Worked on for-loop.

The code used:
my_list = [1,9,3,8,5,7]

for number in my_list:
    print number * 2

The interaction for this code:
2
18
6
16
10
14

No comments:

Post a Comment