Why use the range function to iterate a for loop for a specific count?

promise = “I will not chew gum in class”

for promise in range(5):
print(“I will not chew gum in class”)

if promise is already a variable, why do we need to print the full statement? Can’t we just set the command to print(promise)?

2 Likes