MITx 600.1x | Week 1 | Python Basics | 2. Core Elements of Programs | Exercise for: Item 3
#!/usr/bin/python3
end = 3
total = 0
for next in range(1, end+1):
total += next
print('total =', total)
'''
MITx 600.1x | Week 1 | Python Basics | 2. Core Elements of Programs | Exercise for: Item 3
total = 6
'''