-
Notifications
You must be signed in to change notification settings - Fork 269
Calculate Difference
Sar Champagne Bielert edited this page Mar 2, 2026
·
6 revisions
TIP101 Unit 1 Session 1 (Click for link to problem statements)
Understand what the interviewer is asking for by using test cases and questions about the problem.
- Can I assume the inputs will always be numbers?
- Yes.
Plan the solution with appropriate visualizations and pseudocode.
General Idea: Write a function that takes two numbers as inputs and calculates the difference.
def difference(a, b):
return a - b