79526870

Date: 2025-03-22 02:48:13
Score: 1.5
Natty:
Report link

Now that i know the split function creates a new list that can't be saved, I found a new way of changing the values.

health_list = healths[ct].split(",")
health_list[cn] = str(int(health_list[cn]) - damage)
healths[ct] = ",".join(health_list)

I need to just make a temporary list as a placeholder then join the list back together with the new value.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dirtydan