Python Class Exercises

Introduction

Here are a series of exercises to be done in class. They could also be assigned as homework, but having the instructor available for questions is very helpful.

Python

Earth's Circumference Calculations
Namespace
Interactive Help
Lambda Expressions & Anonymous Functions
Python Assignment (=) Operator

tkinter

Note: First create a Frame to put everything in.

f = Frame(root)
f.grid(row=0, column=0, sticky=N+S+E+W)
or
f = Frame(root)
f.pack()

Widget Relief
Pack Geometry Manager