If logic code bloc or python scrips

Check this posts here:

That will get you started. I can give you the answer, but then you’ll learn nothing! There’s also a neat solution to your problem that doesn’t even need conditional statements…you can solve it using applied mathematics and computational thinking.

Also, the best way to get the most out of this community is to try yourself first and post when you get stuck.