I am trying to recognise user typed strings such as "exit" or "add number" using this:
command, data = input('>').split(" ", 1)
It works for two word input, but not one word of input ("need more than 1 value to unpack").
What is the best way of accepting both one/two word inputs?