Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13861

How can program recognize increase in i [duplicate]

$
0
0
if i == 17:    v += -680    s += 28if i == 34:    v += -680    s += 28#etc

I want the if statement to happen everytime i increases +17. How can I turn this into one if statement instead of countless?


Viewing all articles
Browse latest Browse all 13861

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>