diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2941662 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +geckodriver.log +.gitignore +*.pyc +*/__pycache__ diff --git a/Scott_Submissions/pdb_test.py b/Scott_Submissions/pdb_test.py new file mode 100644 index 0000000..b08d585 --- /dev/null +++ b/Scott_Submissions/pdb_test.py @@ -0,0 +1,28 @@ +import pdb + +def calculate_average(numbers): + total = sum(numbers) + average = total / len(numbers) + return average + +def main(): + data = [1, 2, 3, 4, 5] + + pdb.set_trace() + result = calculate_average(data) + print("The average is:", result) + + pdb.set_trace() # Set a breakpoint at this line + + print("Program execution resumed.") + # ... continue with the rest of your code + +if __name__ == '__main__': + main() + + +# n or next: Execute the next line of code. +# s or step: Step into a function call. +# c or continue: Continue execution until the next breakpoint or the program's end. +# p or print: Print the value of a variable. +# q or quit: Quit the debugger and exit the program. \ No newline at end of file