What is Python?

Python is an intepreter between you and the computer. Python gives you the ability to analyze large sets of data quickly and efficiently along with an easy solution for data analysis.

How the heck do I use it?

Step 1:Open up a Jupyter editor.

Step 2:Select new->Python 3.

Step 3:Type in stuff.

Step 4:Press cntrl+enter to run the cell.


In [1]:
a=0

In [6]:
print(a)


1

In [3]:
a=1

In [5]:
print(a)


1

Some basic python stuff

  1. You can comment inside your code by using the # sign before your comment. Python will ignore everything that follows it.
  2. If you want to know the value of a variable, you cant type print(x), where x is the variable in question.
  3. Spacing matters...a lot. See the following example.

In [9]:
#Example
a=2
print(a)
  print(a)


  File "<ipython-input-9-be510e87e9ba>", line 4
    print(a)
    ^
IndentationError: unexpected indent

In [ ]: