Gaddis Chapter 2.

Gaddis Chapter 2.

Agenda

Reading Input from the Keyboard

Python input() function is used to read data from the keyboard.

Reading integers with the input() Function

Reading floats with the input function

The input() function always returns the user's input as a string, even if the user enters numeric data. Use built-in functions to convert a string to a numeric type.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download