This sounds really stupid, but I honestly am not even sure what exact words I am supposed to use to google this topic, so after searching with no good results, I ask here. I am writing a program in python, and I want to run in from a prompt as "python program.py variable", and have the variable given saved and run through a function.
Example:
def function (variablefromshell):
print (variablefromshell)
prompt command: python program.py 5
shell output: 5
I am used to using input ("> ") to set user defined variables, but I'm not quite sure how accomplish what I want to do above.Your time and assistance would be greatly appreciated