I just started using Python and I have a question about idle vs terminal.

In idle, I made a file called Robot.py

I have a class called Robot

```
class Robot(object)

    def __init__(self,x,y):
        #some code here etc...

def HelloWorld()
    print "Hello World!"

```

I have another file called testrobot.py, which looks like so:

```
import Robot
r = Robot(1,4)

```

In idle, I am able to successfully create a Robot object when I run testrobot.py. However in terminal, it gives an error Message `NameError: Robot is not defined`

I'm not sure how to run my program in terminal.

Also:

How can I call my `HelloWorld()` function which is in Robots.py but not of the class Robot in an external file (such as testrobot.py)?

Thanks in advance!