Young Programmers Podcast
Simple Python Calculator using a Dictionary and Functions for Operators

Simple Python Calculator using a Dictionary and Functions for Operators

Young Programmers Podcast

About this episode

This lesson creates a simple calculator using a dictionary to look up functions for operators. The point is to practice more with dictionaries, and to learn about higher-order functions. Source code

More from Young Programmers Podcast

Let’s look at two very nice features of Tynker. The physics feature allows you to have falling objects and accurate projectile motion, combined with adjustments for gravity, friction, density, gravity…

Showing how to create multiple turtles in Kojo, and make them wander around. Uses Scala features map and foreach.