Please help me with functions using Python range

Asked 2 years ago, Updated 2 years ago, 101 views

How can I use the range function to input raw_input and repeatedly output the input value 100 times.

python-2.7

2022-09-21 16:24

2 Answers

raw_input = 5
for i in range(100):
    print(raw_input)


2022-09-21 16:24

raw_input=input" (enter a number!) ")
for i in range(100):
    print(raw_input)


2022-09-21 16:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.