I just want a quick help: How can I pass no value in sys.argv[1] file in python?
For example: For this, my code works and gives the desired result
>python.py Hello
some if-else and for loop
if sys.argv[1] == 'Hello':
print(something)
But this code doesn't work as I want it to
>python.py
if sys.argv[1] == None:
print(something)
I don't want to use try and Except block for my program execution, do you guys have a way around for this problem? How can I pass literally no value? Thanks