DSCC mini workshop 1: Difference between revisions

From CommunityData
(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...")
(No difference)

Revision as of 07:39, 12 April 2016

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)