When I submit multiple commands at once in IDLE (using v. 3.7), I get an "invalid syntax" error.
For example, I have to first copy, paste, and enter this:
def converter(number, base):
figures = [int(i) for i in str(number)]
figures = figures[::-1]
result = 0
for i in range(len(figures)):
result += figures[i]*base**i
return result
Then I have to copy, paste, and enter this:
print(converter(30, 12))
It's tedious, and be convenient to just enter it all together. Is there a way to do that?
EDIT: Here's a quick video example for clarity: https://www.dropbox.com/s/gh3zxc8qy3jjl7p/python.mp4?dl=0