P01_quiz1_test.py
)P01_quiz1.py
)After you’ve submitted the exercises as a team, do one or more of the following:
Compare your solutions to POTD 1. Are they identical? Similar? Completely different?
As a team, try to solve the problem listed under Other Practice Problems in the POTD 2 prompt:
Suppose that you are writing a program and you have two variables
x
andy
that contain values. You’d like to swap the values stored in those variables, so what was previously stored inx
is now stored iny
and what was stored iny
is now inx
. For example if the following program is completed with your code, it should output4 10
. Note: your solution should not depend on the specific values (e.g., 4 and 10) - it should work regardless of whatx
andy
are set to.= 10 x = 4 y # your code here print(x, y)
Discuss and begin working on POTD 2
Example program: print the sum of 3 user-supplied numbers
input
promptsNotice that this program uses both command line arguments
and an input
prompt.