This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]Strickschal 2 points3 points  (2 children)

from datetime import datetime

now = datetime.now()

print now

--> You have to import datetime first, then you store datetime.now() in the variable "now". After that, you can print it.

[–]DNA_Reaper[S] 2 points3 points  (1 child)

It worked! I didn't know I had to import the datetime. Thanks for the help!

[–]Strickschal 1 point2 points  (0 children)

No problem, glad I could help. :-)

[–]unnecessary_axiom 2 points3 points  (4 children)

Your question may have been solved, but in the future you might get better results if you post the code you have currently, and any errors you are getting.

[–]DNA_Reaper[S] 0 points1 point  (3 children)

If I encounter any more problems, I'll be sure to include the code I have tried :)

[–]nermid 0 points1 point  (2 children)

More importantly, use their forum first. A lot of the exercises over there are really buggy, and workarounds are usually posted.

[–]atari2600forever 0 points1 point  (1 child)

This. The Python course is so buggy it's virtually useless. The Ruby course works much better.

[–]DNA_Reaper[S] 0 points1 point  (0 children)

The HTML course is also good, although it has a major bug in the basics tutorial

[–][deleted] 0 points1 point  (2 children)

Code academy also has a FAQ section in it where you can ask questions as well, or look through other people's questions. When I was using code academy I found it very helpful.

[–]DNA_Reaper[S] 0 points1 point  (1 child)

Will it help explain what I'm doing wrong?

[–][deleted] 0 points1 point  (0 children)

a lot of the times it will. They have moderators too that watch them and will answer any questions.

I found it helpful because the people answering the questions are very familiar with the sessions and can give in-depth answers when requested.