Matthew L. Wright
Visiting Assistant Professor, St. Olaf College

Homework 27: Python and HTML

CS 121 ⋅ Spring 2016

The goal of this assignment is to use Python to write a HTML file that depends on some user input. When finished, upload your Python file to Moodle for HW27.

Your program should ask the user to enter a number. Your program should then write a HTML file that displays the first 8 powers (starting with 0) of the number.

For example, if the user enters 5, the HTML file generated by your program should look something like the following when displayed in a browser:

screenshot of browser

For reference, you may wish to see from class. For help with HTML tags, see this HTML tutorial. For help with CSS selectors and properties, see this CSS tutorial.