--Originally published at Carolina's Blog Site
The input function allows the user to provide a prompt string. When the function is evaluated, the prompt is shown. The user of the program can enter the name and press return. But wait, there’s more…you should know that the input
function returns a string value. If you want to do some arithmetic with it, you need to convert that string into an int or a float, using the int
or float
converter functions.
SCREENSHOT.