Adafruit is open and shipping! Let's build back better, together!

From 1977: trying to Pythonize BASIC #Programming #Languages #BASIC #Python

Twitter’s Trammell Hudson highlights an article from 1977 where it was suggested adopting Python-like syntax in BASIC.

Russ Walter suggested changes in January/February 1977 issue of Personal Computing Magazine. At that time 90% of business code was in COBOL but 60% of that done by students was in BASIC (when they weren’t doing their FORTRAN homework).

John Kemeny and Thomas Kurtz in­vented BASIC at Dartmouth College, in 1963, by simplify­ing the computer language ALGOL. They retained the AL­GOL words FOR, TO, STEP and THEN but eliminated ALGOL’s complex options such as integers versus reals (BASIC automatically gives you reals), local versus global variables (BASIC auto­matically gives you globals), and simple versus compound statements (BASIC forces you to use simple statements).

BASIC became popular for several reasons. It was easy to learn. It used an exciting interactive timesharing system. It compiled quickly. It included four simple pairs of job­control commands: HELLO & BYE, NEW & OLD, SAVE & UNSAVE and LIST & RUN. For editing, it used state­ment numbers: “to delete a line, just type the line’s number; to correct a line, just retype it.” Kemeny and Kurtz mastered politics: motivating their students to write the compiler and ran an in-service program for high school teachers, who spread the good news. But the big clincher came when Digital Equipment Corp. decided to put BASIC on its PDP-8 computers as an alternative to FOCAL. PDP-8 users preferred BASIC to FOCAL so much that Digital chose BASIC to be the main language for its PDP-11.

But BASIC suffered as it’s creators never wanted to sacrifice backwards compatibility. Mistakes could never be unmade.

Walter argues in the article about several issues that could easily be corrected by adopting elements chosen by Python:

  • Using a colon for range values
  • Indenting FOR/NEXT loops and subroutines
  • Indenting IF statements
  • Long variable names (most BASIC implementations only allowed single character variable names in the older days)
  • Switch comma and semicolon in PRINT statements
  • Better commenting methods
  • Eliminate unneeded statement types

Again, this was in 1977! Python had yet to be invented by Guido van Rosssum until 1990. Perhaps it was language influencers in preceding years that mulled over best practices which lead to the development of our more modern languages like C and then Python?

And to those who say that BASIC did evolve, that is true also. Differing groups implementing BASIC on microcomputers build on the work of early BASIC. While indentation wasn’t a huge thing at first, longer variable names and comments were introduced. By the time Microsoft introduced Visual BASIC, most modern improvements had been made.

The original 1977 article suggesting changes is a very interesting read in language evolution.

What are your recollections of BASIC and it’s evolution? Let us know in the comments below.

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Join 25,000+ makers on Adafruit’s Discord channels and be part of the community!

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more

CircuitPython – The easiest way to program microcontrollers –

Maker Business — To make it through a tough business cycle, layoffs should be a last resort

Wearables — Pipe cleaner purposes

Electronics — Diode Test Current

Python for Microcontrollers — Python on Microcontrollers Newsletter: CircuitPython 6 released and projects galore! #Python #Adafruit #CircuitPython @micropython @ThePSF

Adafruit IoT Monthly — CO2 Cuckoo Clock, Wippersnapper, and more!

Microsoft MakeCode — Making a Smart LEGO Ferris Wheel!

EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/25/2020 Featuring #Adafruit #SGP40 #AirQuality Sensor Breakout – VOC – STEMMA QT @adafruit #newproducts

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at !


  1. I did learn BASIC about the same time this article was written, although I wouldn’t have read it. My father might have. I used BASIC almost exclusively for 20 years, even though I also learned FORTRAN and PASCAL. My first professional programming jobs were also in BASIC, so it will always have a special place in my heart. Looking at the changes that were proposed in this article, I can see some of what was adopted by Python in it (not so much PASCAL or C). As someone who uses Python almost exclusively these days, I can see some of what was proposed by Mr. Walter back then in it. I can do the quick & dirty things with it that I could do with BASIC back then. I basically use it as a hobby these days.

  2. I learned BASIC on a TRS-80 and could totally agree that a colon instead of the word ‘ TO ‘ would have been the way to go. I never used LET or END in any of the programs I wrote because it was just extra typing unless I needed the the program to END immediately. When I took programming in High School the BASIC that was taught was Chipmunk BASIC which is still avaliable for the raspberry pi. It did have Subroutines and Returns statements; I always felt that the FOR/NEXT Combination helped me understand the RETURN statements usage. Beside you could do some interesting things with NEXT statements.

Sorry, the comment form is closed at this time.