0
I have this code giving error in the assignment of the variable M, of the dictionary.
Returning the next: NameError: name 'm' is not defined
I’m a beginner in this kind of subject.
The object of it is returns a date in full.
data = input('Digite a data (DD/MM/AAAA): ')
def função_data(data, m):
m = {
"01":"janeiro",
"02":"fevereiro",
"03":"março",
"04":"abril",
"05":"maio",
"06":"junho",
"07":"julho",
"08":"agosto",
"09":"setembro",
"10":"outubro",
"11":"novembro",
"12":"dezembro"}
return data, m
print(função_data(f'{data[0:2]} de {m[0:3]} de {data[6:]}'))
It will be necessary to print the name before the return
, I did it but unsuccessfully.
Augusto, thanks. A question, you whenever possible look for resolution in the documentation of something similar when it is programmed? I do that, but sometimes I can’t find anything close.
– Daniel Alves de Barros
Yes, I always look the documentation.
– Augusto Vasques