Problem with 2/6


#1

I don't know what is wrong with my code. Looking for help.


#2

Sorry is solved. I was wrinting "datetime" all the time... I can't delet post now!!


#3

What was the final answer? I can't figure it out...


#4

I was wrinting:

now = datatime.now()

And it should be:

now = datetime.now()

I was writing "datetime" in the wrong way.


#5

I kept doing the same thing! for some reason my hands wanted to type datatype.
here is how it supposed to look
from datetime import datetime
var = "now"
now = datetime.now()
print datetime.now()


#6

datetime datetime importación

DateTime.Now print ()

ahora = DateTime.Now ()

print ahora


#7

Is it the gap in the middle because I got this and it worked.

from datetime import datetime
now = datetime.now()
print now


#8

I hope that you know that in python you do not have to declare the variable using var. I am a beginner please correct me if I am wrong.


#9

from datetime import datetime
now = datetime.now()
print now


#10

from datetime import datetime
now ="datetime.now()"
print now

It stil asks me if ı store the result of datetime.now() in the now variable. Where am ı making mistake?


#11

from datetime import datetime
now=datetime.now()

print "%s/%s/%s %s:%s:%s"(now.month, now.day, now.year, now.hour, now.minute, now.second)
What's wrong with this code could someone help please it's supposed to give mm/dd/yyyy hh:mm:ss format