I'm trying to create a simple while loop but there is a problem:
import random
weekDays = ["Monday", "Tuesday", "Wednesday","Thursday", "Friday", "Saturday", "Sunday"]
n = 0
while n < len(weekDays):
diceRoll = random.randint(4, 6)
print("On {} perform {} reps per set".format(weekDays[n]))
n = n + 1
The issue I do not get it:
print("On {} perform {} reps per set".format(weekDays[n])) IndexError:Replacement index 1 out of range for positional args tuple
Will be appreciate for any suggestions.