Python Date and Time Grand Finale


#1

Hi, my name is Luis, im learning Python, im doing the excercise "datetime" BUT there is a problem

I don´t know i put the time and the day in the right fotmat HELP MEE!


#2

@luisalejandross

Please move your topic inside the #python category because this isn't a technical problem with codecademy. It's just a question of keeping the forum clean.


#3

You have to print it all on the same line:
MM/DD/YY HH:MM:SS

Click to see how

print '%s/%s/%s %s:%s:%s' (now.month, now.day, now.year, now.hour, now.minute, now.second)


#4

can you tell me how please


#5

It's ok, I moved it for you.


#6

i did it but still the same problem


#7

@luisalejandross

Can you paste your updated version of your code?


#8

https://www.codecademy.com/courses/python-beginner-en-zFPOx/0/6?curriculum_id=4f89dab3d788890003000096

this is the only link i get of the code


#9

We can't see your exercise - we see our own.


#10

@luisalejandross

Please post it in this format:

```
Replace this line with your code. Do not remove backtips
```

#11

from datetime import datetime
now = datetime.now()
print '%s/%s/%s' % (now.month, now.day, now.year)
print '%s:%s:%s' % (now.hour, now.minute, now.second)

#12

Do it like I did in my post above.


#13

from datetime import datetime
now = datetime.now()
print '%s/%s/%s' % (now.month, now.day, now.year)
print '%s:%s:%s' % (now.hour, now.minute, now.second)

can i see your code? please


#14

print '%s/%s/%s %s:%s:%s' (now.month, now.day, now.year, now.hour, now.minute, now.second)

Please read my instructions next time - I told you what to do.


#15

oh thank you now understand this , I appreciate your help


#17