local variable
Give this one a try later!
a local variable is defined in the context of a particular function. Local
variables are not shared between functions
logic errors
how to fix?
Give this one a try later!
, a mistake in what the code does
-gives wrong output
-due to typos,misunderstandings
-the debugging process will handle this
runtime errors
Give this one a try later!
Errors that occur when you run the program ('at run-time') ● Often referred
to as an "exception" ● Might not be predictable ahead of time ● Because
Python is interpreted, some syntax errors won't show up until run-time ●
Program uses up too much memory ● Program makes too many nested
function calls.
How to do bottom up design with functions.
Give this one a try later!
1. Write code for basic tasks in short functions
2. As you build more functions, complex code becomes simpler because
you have created better tools
how to create a list of strings from each line of the program
Give this one a try later!
Give this one a try later!
a local variable is defined in the context of a particular function. Local
variables are not shared between functions
logic errors
how to fix?
Give this one a try later!
, a mistake in what the code does
-gives wrong output
-due to typos,misunderstandings
-the debugging process will handle this
runtime errors
Give this one a try later!
Errors that occur when you run the program ('at run-time') ● Often referred
to as an "exception" ● Might not be predictable ahead of time ● Because
Python is interpreted, some syntax errors won't show up until run-time ●
Program uses up too much memory ● Program makes too many nested
function calls.
How to do bottom up design with functions.
Give this one a try later!
1. Write code for basic tasks in short functions
2. As you build more functions, complex code becomes simpler because
you have created better tools
how to create a list of strings from each line of the program
Give this one a try later!