Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75642

Re: CodeSkulptor

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: CodeSkulptor
Date 2014-08-04 02:21 +0100
References <pkmtt9135hrbk9l7u3bq9no55ttok69q3p@4ax.com>
Newsgroups comp.lang.python
Message-ID <mailman.12610.1407115315.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 21:06 -0400
  Re: CodeSkulptor Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-04 02:21 +0100
  Re: CodeSkulptor Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-04 11:29 +1000
    Re: CodeSkulptor Chris Angelico <rosuav@gmail.com> - 2014-08-04 11:43 +1000
      Re: CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 22:08 -0400
        Re: CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 22:38 -0400
          Re: CodeSkulptor Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-04 13:03 +1000
            Re: CodeSkulptor Chris Angelico <rosuav@gmail.com> - 2014-08-04 13:09 +1000
            Re: CodeSkulptor Peter Otten <__peter__@web.de> - 2014-08-04 14:39 +0200
            Re: CodeSkulptor Chris Angelico <rosuav@gmail.com> - 2014-08-05 00:18 +1000
          Re: CodeSkulptor Chris Angelico <rosuav@gmail.com> - 2014-08-04 13:05 +1000
        Re: CodeSkulptor Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-08-04 10:26 +0200
    Re: CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 21:41 -0400
      Re: CodeSkulptor Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-04 02:56 +0100
        Re: CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 22:07 -0400
          Re: CodeSkulptor Terry Reedy <tjreedy@udel.edu> - 2014-08-04 03:02 -0400

csiph-web