DSCC mini workshop 1

From CommunityData
Revision as of 06:39, 12 April 2016 by Groceryheist (talk | contribs) (Created page with "Do you have python installed? If not go here: CDSW/Day_0_setup_and_tutorial. == Exercise 1: Python Tutor == Python Tutor [http://pythontutor.com pythontutor.com] is a u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Do you have python installed? If not go here: CDSW/Day_0_setup_and_tutorial.


Exercise 1: Python Tutor

Python Tutor pythontutor.com is a useful educational tool that can help you visualize the execution of your code.

Click "edit code" to try out your code! Let's try the Fibonacci sequence! It is a common introductory program.

l = [0,1] for i in range(0,10):

   l.append(l[-1]+l[-2])

print(l)