Hello,everybody!
I write my first Python script in file Fibonacci.py in Linux as the fallowing:

a,b = 0,1
while b < 10:
    print b
    a,b = b,a+b

When I want to run it,I must input these command in the command line:
> python Fibonacci.py

I want to know what should I do then I can run it directly by the command:
> Fibonacci.py

It's my first Python program which looks in a babyhood! Help me,please!
Thanks!:)

Oh,I konw it. Just the same as shell;)
#!/usr/bin/python
[……]

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.