misc code
def lastManStanding(n): ppl = range(n) shooter = 0 while len(ppl)>1: If len(ppl) = shooter-1: victim = shooter +1 ppl.pop(victim) shooter = 0 elif len(ppl) = shooter: victim = 0 ppl.pop(victim) shooter = 0 else: victim = shooter +1 ppl.pop(victim) shooter == victim Return ppl[0]
zzz = lastManStanding(3)