r/adventofcode • • 1h 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

1 Upvotes

7 comments sorted by

View all comments

8

u/flwyd 1h ago edited 6m ago

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

1

u/johnpeters42 59m ago

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

1

u/flwyd 7m ago

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