I'm a complete newbie to python (this is my first post) but I have some experience programming in R. I've been going through the Crash Course in Python for Scientists tutorial.
I got as far as the matplotlib bit-I havent been able to go beyond this as the plot function is not recognized despite importing matplotlib. I'm using the idle in python 2.7.3 (I'm using a mac).
Here's what I'm trying to do:
>>> import matplotlib
>>> plot(range(20))
Here's the error message: # error message
Traceback (most recent call last):
File "<pyshell#9>", line 1, in <module>
plot(range(20))
NameError: name 'plot' is not defined
Can anyone help out at all? I know there are loads of other editors I could use but I prefer something similar to the R console where I can just type directly into the command line. I still haven't figured out a short cut for running a code directly from the idle editor-my f5 key is for something else and it doesn't run when I type it.