Project Description
Your task for today is to build a Python program that calculates the sum of all numbers in a user-defined range. Instead of hardcoding the start and end values, your program will prompt the user to enter them.
You’ll then write a function that loops through each number from the start to the end (inclusive) and calculates the total sum. This is a super practical beginner project — you’ll see similar logic in billing systems (summing prices from one invoice to another), generating statistics over days or months, or even calculating cumulative points in a game.
Expected Output
When you run the program, it should look like this:
It adds up 3 + 4 + 5 + 6 + 7 + 8 and prints the total.
💡 Hint
Click the Show Hint button below if you’re not sure where to start. It’ll show you how to take user input and turn it into a loop that adds up numbers.
➕ The hint also covers using range(start, end + 1)
so the end value is included.
𝌣 Solution
🔒 This solution is available to paid subscribers only.
✅ Shows a clean function-based approach that’s easy to adapt for any range.
🚀 Want to keep leveling up?
Browse 200+ projects at dailypythonprojects.substack.com/archive and unlock all solutions by subscribing. Build real Python skills daily and transform how you learn — one project at a time.