Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _sources/Debugging/KnowyourerrorMessages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ example program in the previous section.
wait_time_str = input("How many hours do you want to wait")

current_time_int = int(current_time_str)
wait_time_int = int(wait_time_int)
wait_time_int = int(wait_time_str)

final_time_int = current_time_int + wait_time_int
print(final_time_int)
Expand Down Expand Up @@ -471,4 +471,4 @@ case. We'll look again at ValueErrors again when we get to more complicated prog
For now it is worth repeating that you need to keep track of the restrictions needed
for your variables, and understand what your function is expecting. You can do this by
writing comments in your code, or by naming your variables in a way that reminds you of
their proper form.
their proper form.