1) make sure to use code tags
2) make sure to input all of the traceback. This is required to find the error amongst your code.
3) make sure after you post code that it is formatted correctly. As is the indentation is missing. MAke sure you are using spaces VS tabs.
4) give an example of the function arguments. Currently the variable "their_history" could be anything...which could make a splicing of it out of range. This code requires your string to be at least 2 characters long which causing out of range
2) make sure to input all of the traceback. This is required to find the error amongst your code.
3) make sure after you post code that it is formatted correctly. As is the indentation is missing. MAke sure you are using spaces VS tabs.
4) give an example of the function arguments. Currently the variable "their_history" could be anything...which could make a splicing of it out of range. This code requires your string to be at least 2 characters long which causing out of range
Quote:their_history[-2]
Recommended Tutorials: