I have a function that will convert 3 numbers into a date.
def conv(month, day, year):
months = ('None','January','February','March','April','May','June','July','August','September','October','November','December')
print(months[month],str(day)+',',year)
so if I run the function like this: conv(6,17,2016) the output will be:
June 17, 2016
so far so good, but what if I give 06 for the month instead of 6 how can I get the same output like above? is there any way to use 06 and somehow turning it into 6 for indexing or I have to only give 6 and there is no way for doing that?