How do I clone a list so that it doesn’t change unexpectedly after assignment?

With new_list = my_list, you don’t actually have two lists. The assignment just copies the reference to the list, not the actual list, so both new_list and my_list refer to the same list after the assignment. To actually copy the list, you have various possibilities: You can use the builtin list.copy() method (available since Python … Read more

Im getting Id returned 1 exit status [closed]

Function declaration is not matched with function definition. Declaration: int ERPSGame(); Definition int ERPSGame(int argc, const char *argv[]) In Dev-C++, under Tools -> Compiler Options, put “-Wall” in the “…commands when calling compiler” box. It will be helpful for you to get warnings and do effective coding and saves your time too.