IndexError: Replacement index 6 out of range for positional args tuple
sascham opened this issue · comments
When run the notebook on google colab
IndexError Traceback (most recent call last)
in <cell line: 2>()
7
8 for name in people:
----> 9 prompt = "You are {}. {} You are planning to: {}. You are currently in {} with the following description: {}. It is currently {}:00. The following people are in this area: {}. You can interact with them.".format(name, plans[name], location, town_areas[location], str(global_time), ', '.join(people))
10 people_description = []
11 for i in people:
IndexError: Replacement index 6 out of range for positional args tuple
Hi sascham, if you just remove the second {} after 'You are {}.
That will fix it.
Thanks
Solved, Thank you