Date converter challange | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Date converter challange

WHAT DID I DO WRONG, I GOT 5/5 WRONG

19th Apr 2020, 9:26 PM
G4M3S4L1F3
G4M3S4L1F3 - avatar
9 Answers
+ 1
month = input("what is the month") year = input("what year is it?") day = input("what is today") print(day + "/" + month + "/" + year) that is my code, what is wrong with it
19th Apr 2020, 9:28 PM
G4M3S4L1F3
G4M3S4L1F3 - avatar
0
Use escape sequences inside print(day +'//' +month+'//'...). Are you converting date or just printing out the values
19th Apr 2020, 10:10 PM
Prince
0
it wants me to go from mm/dd/yy to dd/mm/yy and change the date to month and the month to date
20th Apr 2020, 11:10 AM
G4M3S4L1F3
G4M3S4L1F3 - avatar
0
What's the output you are getting
20th Apr 2020, 11:50 AM
Prince
0
what is the monthwhat year is it? Traceback (most recent call last): File "./Playground/file0.py", line 2, in <module> year = input("what year is it?") EOFError: EOF when reading a line
20th Apr 2020, 11:58 AM
G4M3S4L1F3
G4M3S4L1F3 - avatar
0
The code seems to be working in my terminal. Are you entering values after each question. Coz after what is the month it seems you did not enter any value
20th Apr 2020, 12:39 PM
Prince
0
i dont know, i think the computer just wants me to do it a specific way.
21st Apr 2020, 11:06 AM
G4M3S4L1F3
G4M3S4L1F3 - avatar
0
if you have any other aproches for my to try, please tell me.
21st Apr 2020, 11:07 AM
G4M3S4L1F3
G4M3S4L1F3 - avatar
0
thx for helping. im just thinking i should try a different way
21st Apr 2020, 11:07 AM
G4M3S4L1F3
G4M3S4L1F3 - avatar