二手产品经理

二手产品经理

THIS IS RENO

Learn Python Online in 100 Days - Week 3, Day 6

Record#

Catbox

  1. Today I learned about the range function in for loops. The range function can be configured with three parameters: start, stop, and step. The step value can be positive or negative.

CODE#

n1 = int(input("Enter the starting value you want to set:"))
n2 = int(input("Enter the stopping value you want to set:"))
n3 = int(input("Enter the step value you want to set:"))

for i in range(n1, n2, n3):
    print(i)

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.