Python #3: Let's Get Interactive
Python #3: Let's Get Interactive
Type of Type of
data data
Taking only float input from the user
• What are the situations when you need only float input from the user? Please
discuss.
• How to do it?
• Wrap input() with float().
• float is the data type for float. Remember!