After i get the basics from other videos i come here for really cool stuff that i cant get elswhere, but if you think for one second that a newbie will understand anything that you say think again. You go into sys...like....what is SYS??....no introduction whatsoever. .....
It was really helpful . thank you, can you please tell how to pas arguments in a loop or in array form. actually i have 300 files and want to pass them as arguments.
They’re passed just like any other argument. Without seeing your code I’m not sure what you’re struggling with in particular. MyFunc(myFileList) def MyFunc(fileList): for file in fileList: #deal with file
Anytime you want to start a script with specific options. I’m guessing you’ve never used a command line utility, but the gist of it is: Your script is either made to do multiple related things and depending on which option “command line arg” you pass in will change the scripts behavior, and or as the programmer you try to make your script as generic as possible so that the user can pass in the details at the start of the script thus making it more flexible without having the user know how to code.
After i get the basics from other videos i come here for really cool stuff that i cant get elswhere, but if you think for one second that a newbie will understand anything that you say think again.
You go into sys...like....what is SYS??....no introduction whatsoever. .....
I only had to watch 25 videos before I found yours. Now I understand how sys.argv. Thanks a million
Nice explanation really ...but how I can passed arguments between two python scripts in my network? Thanks
How to set default command line argument
It was really helpful . thank you, can you please tell how to pas arguments in a loop or in array form. actually i have 300 files and want to pass them as arguments.
They’re passed just like any other argument.
Without seeing your code I’m not sure what you’re struggling with in particular.
MyFunc(myFileList)
def MyFunc(fileList):
for file in fileList:
#deal with file
When would you use this?
Anytime you want to start a script with specific options. I’m guessing you’ve never used a command line utility, but the gist of it is: Your script is either made to do multiple related things and depending on which option “command line arg” you pass in will change the scripts behavior, and or as the programmer you try to make your script as generic as possible so that the user can pass in the details at the start of the script thus making it more flexible without having the user know how to code.
@@SimplyCoded I did it before, just that I forgot the syntax I guess. After watching your video, it came back. Thanks for the video.
Im a better snake than u
Why not just use input()
Brandon Lee cuz Input is limited, but argv can be used to add as many arguments as you like