CodeSkulptor
Mark Lawrence
breamoreboy at yahoo.co.uk
Sun Aug 3 21:21:40 EDT 2014
On 04/08/2014 02:06, Seymore4Head wrote:
> I am very new to Python.
> Right now I am using two tools.
> I am trying the tutorials at codecademy.com which is walking me
> through it pretty slow.
> The second thing I am doing is using codeskulptor to try out a few
> things I have learned at codecademy.
>
> I am getting a mismatch.
>
> The example I am working on is:
> (codecademy)
> from datetime import datetime
> now = datetime.now()
>
> current_year = now.year
> current_month = now.month
> current_day = now.day
>
> Putting that in codeskulptor gets
>
> Line 4: ImportError: No module named datetime
>
> The commands I am used to in codeskulptor is something like
> import random
> import math
> import simplegui
> import datetime < Changing this to import instead of
> from datetime import datetime
> still doesn't work.
>
Please define "still doesn't work" as my crystal ball has broken down
and been sent for repair.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Python-list
mailing list