Quiz Unit 1

  1. What is Python?


  2. What is an IDE's interpreter used for?


Write down what data type you would expect to get back from the terminal (string, integer, float, or an error). If you expect an error message, describe why that error takes place.

1) 2 * 4 * .5

2) 3 // 2

3) x

4) ‘ab’

5) ‘ab + b’

6) ‘ab’ + ‘b’

7) ‘1’ * ‘b’

8) ‘a’ * 2

What will be printed out after the code below is run?

quiz_photo

In the space below, write out a complete program that asks for the user's name, takes in the response as input, and outputs a personalized greeting to them.