N = 5 rice = 1 total = rice for i in range(N): print("i =", i) rice = rice * 2 total = total + rice print("rice now:", rice, "total =", total)