from sys means python code example
Example 1: python sys
import sys
print('Python version you are using')
print(sys.version)
print('Informantion')
print(sys.version_info)
Example 2: python sys.argv exception
try:
filename = sys.argv[1]
except IndexError:
print "You did not specify a file"
sys.exit(1)