I am new to programming and I ran this code in terminal(mac), it just works fine. However when I tried to run it in sublimetext 3, it doesn't run. Sublime is set to run on python version 3.
lst=[]
while True:
a=input('enter a number: ')
if a=='done':
break
val=float(a)
lst.append(val)
print('average',sum(lst)/len(lst))