L = 1 E = 50 get = [200,150] for i in range(len(get)): E += get[i] while E >= L * 100: E -= L * 100 L += 1 print(L,E)
To embed this project on your website, copy the following code and paste it into your website's HTML: