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


Groups > comp.lang.python > #104396

Re: turtle ??

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Peter Otten <__peter__@web.de>
Newsgroups comp.lang.python
Subject Re: turtle ??
Date Wed, 09 Mar 2016 10:06:03 +0100
Organization None
Lines 43
Message-ID <mailman.73.1457514382.15725.python-list@python.org> (permalink)
References <5f23cad3-bda5-4c84-a241-c91c5dcb81ff@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace news.uni-berlin.de /gz0uoKgNLqy+n6+maSAMwTN0VNR0q5lyDRfrp5p640g==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'interpreter.': 0.07; 'turtle': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'occurs.': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'specifics': 0.16; 'subject:turtle': 0.16; 'wrote:': 0.16; 'alex': 0.18; 'odd': 0.18; 'creates': 0.18; 'assign': 0.22; 'bit': 0.23; 'bigger': 0.23; 'second': 0.24; 'import': 0.24; 'written': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'example': 0.26; 'installed': 0.26; 'header:X-Complaints-To:1': 0.26; 'error': 0.27; 'separate': 0.27; 'wonder': 0.27; 'least': 0.27; 'question': 0.27; 'actual': 0.28; '3.1': 0.29; 'allows': 0.30; 'print': 0.30; 'code': 0.30; 'posts': 0.30; 'window': 0.30; 'computing': 0.32; 'run': 0.33; 'message.': 0.33; 'gives': 0.35; 'should': 0.36; 'there': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'turn': 0.37; 'received:org': 0.37; 'version': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; 'received:de': 0.40; 'your': 0.60; 'close': 0.61; 'provide': 0.61; 'engine': 0.62; 'side': 0.62; 'details': 0.62; 'more': 0.63; 'personal': 0.63; 'complete': 0.63; 'information': 0.63; 'between': 0.65; 'differences': 0.66; 'forward': 0.66; 'below.': 0.66; 'therefore': 0.67; 'upper': 0.76; '"i".': 0.84; '2.7.': 0.84; '"how': 0.91; 'distract': 0.91; 'humans.': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host p57bd8d98.dip0.t-ipconnect.de
User-Agent KNode/4.13.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:104396

Show key headers only | View raw


Ömer sarı wrote:

> l would like to ask a question as l m a little bit confused .

In computing details matter, and in communication odd personal habits 
distract from the actual message. Please reconsider your use of an "l" as a 
replacement for "I".

> l do practice
> in "how to think like a computer scientist:learning with python3.l
> installed python 2.7.10 and upper version 3.5 python.when l run  example
> code in the book , it gave me error.you can find the code , below. ""

At least as important are the specifics of the "error". Did Python print a a 
"traceback"? This gives detailed information about the error and where in 
the code it occurs. You should always provide it (cut and paste, don't 
paraphrase).

> import turtle             # Allows us to use turtles
>  wn = turtle.Screen()      # Creates a playground for turtles
>  alex = turtle.Turtle()    # Create a turtle, assign to alex
> 
>  alex.forward(50)          # Tell alex to move forward by 50 units
>  alex.left(90)             # Tell alex to turn by 90 degrees
>  alex.forward(30)          # Complete the second side of a rectangle
> 
>  wn.mainloop()             # Wait for user to close window
> 
> "" example code taken from "how to think like a computer
> scientist:learning with python3" chapter3. so l wonder which version of
> python l need to use for that code make work??

There are bigger differences between Python 2 and Python 3 than between 
Python 3.1 and Python 3.5. An example written for Python 3.1 is more likely 
to run with Python 3.5 than 2.7. Therefore I recommend that you work through 
the book using the 3.5 interpreter.

> .another question , is there
> any module which is named as arcpy?

Please use separate posts for unrelated questions. Try a search engine 
before you bother humans.

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


Thread

turtle ?? Ömer sarı <sari.omer.1989@gmail.com> - 2016-03-08 23:39 -0800
  Re: turtle ?? Peter Otten <__peter__@web.de> - 2016-03-09 10:06 +0100
    Re: turtle ?? Steven D'Aprano <steve@pearwood.info> - 2016-03-09 22:55 +1100
      Re: turtle ?? Joel Goldstick <joel.goldstick@gmail.com> - 2016-03-09 09:24 -0500
      Re: turtle ?? MRAB <python@mrabarnett.plus.com> - 2016-03-09 18:14 +0000
        Re: turtle ?? Steven D'Aprano <steve@pearwood.info> - 2016-03-10 13:45 +1100
          Re: turtle ?? Chris Angelico <rosuav@gmail.com> - 2016-03-10 14:47 +1100
            Re: turtle ?? Marko Rauhamaa <marko@pacujo.net> - 2016-03-10 08:14 +0200
              Re: turtle ?? Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-10 08:46 +0200
              Text input with keyboard, via input methods (was: turtle ??) Ben Finney <ben+python@benfinney.id.au> - 2016-03-10 18:28 +1100
                Re: Text input with keyboard, via input methods (was: turtle ??) Rustom Mody <rustompmody@gmail.com> - 2016-03-09 23:54 -0800
                Re: Text input with keyboard, via input methods Larry Hudson <orgnut@yahoo.com> - 2016-03-10 20:51 -0800
                Re: Text input with keyboard, via input methods Rustom Mody <rustompmody@gmail.com> - 2016-03-11 03:46 -0800
                Re: Text input with keyboard, via input methods Marko Rauhamaa <marko@pacujo.net> - 2016-03-10 12:51 +0200
                Re: Text input with keyboard, via input methods Rustom Mody <rustompmody@gmail.com> - 2016-03-10 03:59 -0800
                Re: Text input with keyboard, via input methods Jerry Hill <malaclypse2@gmail.com> - 2016-03-10 09:38 -0500
                Re: Text input with keyboard, via input methods Marko Rauhamaa <marko@pacujo.net> - 2016-03-10 17:13 +0200
                Re: Text input with keyboard, via input methods Chris Angelico <rosuav@gmail.com> - 2016-03-11 07:19 +1100
                Re: Text input with keyboard, via input methods Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-10 21:48 +0000
                Re: Text input with keyboard, via input methods Marko Rauhamaa <marko@pacujo.net> - 2016-03-11 00:47 +0200
              Re: turtle ?? Chris Angelico <rosuav@gmail.com> - 2016-03-10 18:39 +1100
  Re: turtle ?? Terry Reedy <tjreedy@udel.edu> - 2016-03-09 10:30 -0500

csiph-web