Hi guys, I have a question about using argv.
Let’s say as a user I want to run a script that creates folders.
I want to grab the arguments, iterate over them and create a folder.
The idea is to use argv.
I have researched about doing it using:
import os path= os.chdir(path) for i in range(1,11): NewFolder = "Folder" + str(i) os.makedirs(Newfolder)
but the idea is only using arg and not range, I think is more like running the script on cmd and also defining the path for the user to input the folder names and creates the folder on the location.
I’m still learning this, I’m trying to make sense of what I want to do sorry if it is confusing.