Ch 17 Python

17 Introduction

Error handling can prevent your program crashes by providing yourself the potential sources of errors. Here is an example that asks the user to enter a number, then that number is displayed. >>> nb = int ( raw_input ( “Enter a number:” ) ) Enter a number:46 >>> print nb 46 >>> The raw_input () […]