I\'m new in python programming. When i try running a simple python script i get error like this in my terminal
root@bt:/tmp# python code.py Traceback (most recen
it seem that your script expects an input parameter
host=str(sys.argv[1])
in case that parameter is not supplied, as shown in your post, an exception raised and been caught in the except clause before the host parameter was defined
try to declare host before the try/except block
host