Range Function

range(stop)
range(start, stop)
range(start, stop, step)

For Loop

for <iterator variable> in <list>:
    <block of statements>
x = int(input("Enter a number: "))
line = ""
for i in range(x):
    line = line + "*"
    print(line)
x = int(input("Enter a number: "))
line = ""
for i in range(x):
    line = line + "*"
    print(line)
x = int(input("Enter a number: "))
line = ""
i = 0
for i in range(x):
    line = line + "*"
    print(line)
x = int(input("Enter a number: "))
line = ""
i = 0
for i in range(x):
    line = line + "*"
    print(line)
    i = i + 1
x = int(input("Enter a number: "))
line = ""
i = 0
while i < x:
    line = line + "*"
    print(line)
    i = i + 1