r/adventofcode • • 1d ago

Help/Question 2026 - day 1 part 1, Python

Post image

where am I going wrong? I tried plugging in the example set of numbers and it gave me the right numbers but it isn't giving me the right numbers with the main set of numbers. I'm a beginner when it comes to coding, my only experience with apcsp and apcsa in school

0 Upvotes

17 comments sorted by

View all comments

12

u/flwyd 1d ago edited 1d ago

What happens if one == 20, sec == 15, and third == 10 with the_count == 25?

2

u/johnpeters42 1d ago

Or rather one == 20, two == 15, and three == 10

2

u/flwyd 1d ago

Thanks, fixed. I was typing around my cat :-)