So I am working on this project where I take input from the user (a file name ) and then open and check for stuff. the file name is "cur"
Now suppose the name of my file is kb.py
(Its in python)
If I run it on my terminal then first I will do:
python kb.y and then there will a prompt and user will give the input.
I'll do it this way:
A = raw_input("Enter File Name: ")
b = open(A, 'r+')
I dont want to do that. Instead i want to use it as a command for example: python kb.py cur and it will take it as an input and save to a variable which then will open it. I am confused how to get a input in the same command line.