I am working on a Linux box doing some dabbling with python and wish to know how to run the following scripts in from the BASH Prompt
Code example 1
#!/usr/bin/python
def pyfunc()
print "Hello function"
Code example 2
#!/usr/bin/python
# System information Gathering Script
import subprocess
#Command 1
def uname_func();
uname = "uname"
uname_arg = "-a"
print "Gathering System Information with %s command:\n % uname
subprocess.call([uname, uname_arg])
def disk_func():
If I run the code i.e hello.py nothing happens, Regarding the second example I have intentionally left the second funtion blank however is there a way to first run the functions seperatley from BASH i.e run the uname_func() secondly is there a way of running all the functions at once.
Thanks for helping me out

I am a python noob trying to get my head around this