Enter the following Python program (note that spaces at the beginning of the line make a difference in Python):
temp = input("What is the temperature?")
if temp < 5:
print "It is rather cold."
else:
print "This is fine."
Change the program such the it checks if the temperature is higher than 30 and if so
then prints out appropriate message.
Consider question 4 in "Social Issues" at the end of Chapter 6 on page 325. Write
down a few sentences on your views and be ready to discuss the issue in the section.
Hand these exercises in before noon on tuesday October 31st.
Extra exercise
Those who want to learn more about Python should do Exercise 1 in
Instant Hacking, a web page
that has an unorthodox introduction to Python.
hh (hja) hi.is, October 24th, 2006.