You can also take each input separately by looping and saving the results in a list, for example:
if not number:
Like that you are flexible in how many inputs you take - it stops when the user just presses enter.
(Taking input with a loop works well in real life, not on sololearn though. ;-))