I am new to Python.Below is part of my python script
if( len(sys.argv) < 2 ):
print "Please provide the SDK version!"
print "Usage: python parse.py <sdk_version>"
sys.exit(2)
sdk_version = sys.argv[1]
timestamp = int( time.time() )
created_on = datetime.datetime.fromtimestamp(timestamp).strftime( '%a %b %d %H:%M:%S %Z %Y' )
The input command I am giving is "python parse.py 8". But it is giving below error:
File "parse.py", line 10 print "Please provide the SDK version!" ^ SyntaxError: invalid syntax
What should be correct input.