Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logo programming language implementations [closed]

The "joke" question Joel asked during podcast #58 made me all nostalgic for Logo, which was the second language I ever programmed in, after Basic, and which is why I never had any trouble with recursion in college.

Are there any implementations of Logo for Windows or Linux (the platforms I can use) or Mac (because I know I'm not alone in this world)? How can I get the Logo programming language for my computer?

like image 560
Nathan Fellman Avatar asked Jun 20 '09 03:06

Nathan Fellman


People also ask

Is Logo programming language still used?

In March 2020, there were counted 308 implementations and dialects of Logo, each with its own strengths. Most of those 308 are no longer in wide use, but many are still under development. Commercial implementations widely used in schools include MicroWorlds Logo and Imagine Logo.

What kind of programming language is Logo?

Logo, a computer programming language that originated in the late 1960s as a simplified LISP dialect for use in education; Seymour Papert and others used it at the Massachusetts Institute of Technology (MIT) to teach mathematical thinking to schoolchildren.

Who developed MSW logo?

MSWLogo is a programming language which is interpreted, based on the computer language Logo, with a graphical user interface (GUI) front end. It was developed by George Mills at the Massachusetts Institute of Technology (MIT).

Is Logo a programming language True or false?

Logo is a simple computer programming language which can be used to control devices. For example, a small robot known as a turtle can be moved around the floor using logo.


1 Answers

Fire up a terminal on Mac or Linux, and type python, then press Return or Enter. Then type from turtle import *, then Return or Enter. Now type fd(100), then Return or Enter. Hooray! Logo with Python! =D (Windows users can install Python here)

Documentation

For a complete list of commands, see the online documentation. Note that the documentation will tell you to type turtle.fd(100), rather than fd(100), because they chose to use import turtle, rather than from turtle import *. The star method is almost always bad, because it makes it possible to confuse your own functions with those in the module, but in this case it is good, because it lets us control the turtle with proper logo commands.

Saving logo functions

Create a file called shapes.py, and save it somewhere sensible. Add the following code to shapes.py:

from turtle import *  def square(size):     for i in range(4):         fd(100)         rt(90)  def fun(size):     for i in range (10):         square (size)         rt(36) 

Now, whenever you want to do logo, navigate to wherever you saved shapes.py before running python. Then, after running python, run from shapes import * instead of from turtle import *. This will import logo along with any custom functions you have defined in shapes.py. So, whenever you make a cool function, just save it in shapes.py for future use.

e.g. interactive session (after running python from the relevant directory):

from shapes import *  square(100) fun(50) 
like image 52
daviewales Avatar answered Oct 02 '22 06:10

daviewales