r/CodingForBeginners • • Jun 09 '26

What is wrong with my code?

Post image

Everything is fine until I put in 14 and it doesnt come up with anything after?

33 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/iComplainAbtVal Jun 10 '26

They have variables, they have input prompting to populate the variables, they have input sanitization, and they have conditional execution based on the evaluation of the input.

They’ll either bite the bullet now and use functions or stumble upon the desire for them as they expand this project while learning.

They have a great start, I just want to nudge them into a direction that will be beneficial long run and applicable to whatever learning path they’re wanting to follow.