I am starting with Python, and trying to make a function. The one i am in trouble is:
#~ this function should make a directory only if it doesn't exist
def make_dir(directoryname):
if not os.path.exists(directoryname):
return os.makedirs(directoryname)
else:
print "la carpeta %s ya existe" %(directoryname)
What i want to know is if it is possible to give multiple inputs like
def make_dir(a,b,c,d,r) #where a,b,c,d,r are directory names.
and how can i do it.
I apologize if it is an obvious question.