Skip to content

Tag: list

Values in Python lists getting overwritten

I am calculating some values for a certain type of matrix A of varying sizes. Namely the backward error, forward error, condition number, and the error magnification (everything with the infinity norm). My values get calculated and then I am trying to put them into lists, looping through increasing sizes of t…

how can I make my pygame konami code simpler?

I am currently working on a pygame game and my friends asked if i could implement a konami code. I thought it was a great idea so i implemented it. I made it in a way it would certainly work because I wouldnt have to deal with any errors. However.. the code got a bit larger then expected so i