Before Class
- Read Simple Python Data from the section entitled Statements and Expressions through the section entitled Input.
Class Activity
- What is the len function used for?
- Write a Python program that uses the input function
to allow a user to enter his or her first name and last name separately.
The program should print the last name, followed by a comma,
followed by a space, followed by the first name.
Active Learning Activity
- Write a Python program that asks the user for a number of pennies.
The program should then calculate and print how to convert these
pennies into nickels and pennies using the smallest
number of coins. For example, 17 pennies can be converted
into 3 nickels and 2 pennies.
Python Notes
- Common operators include +, -, *, /, //, % and **.
- Common types: int, float, str
- Some helpful information.