I need to solve a assignment. can you guys please help me to solve it.
How can you increase by a 10 with each iteration, with the For loop?
Assignment:
make sure that the heart rate starts at 60 and continues through 140 and the heart rate increases by a 10 with each iteration. With each heartbeat.
this is my beginning line. But how can I put the 10 iteration in this line?
for hartslag in range (60,141)
>Solution :
We’re not supposed to help with homework assignments, but whatever.
Here you go,
for hartslag in range(60,141,10):
print(hartslag)