Enter dollars to buy a euro:1.40
Enter dollar amount:17.57
Euros: 12.55
p. 22, problem 6 (save as p1_6.py).
x:4
4.0 16.0 64.0 256.0
4.0
16.0
64.0
256.0
Additional Problems:
p. 21-22: 1-4, 13-16
Hints and Tips
To run Python on the lab machines, start up "Wing IDE" from the desktop.
Since we are using Python 3, there are the following differences from the book:
Where the book uses raw_input, just use input.
Be sure to surround the items being printed with parentheses. Instead of print 'x:', x, type print('x:', x).
Experiment with your programs using the command-line window in the bottom
left corner. When your program is complete, copy the lines into the editor window at the top. You can then click the Run button to test each program.