Ok seems that python doesn't add a space after the prompt, so it would be something like this:
julia> function input(prompt::String = "")
print(prompt)
chomp(readline())
end
input(generic function with 2 methods)
The only difference besides the leading space, when called without
arguments is that Python raises an EOFError if I type Ctrl+D, while my
Julia function returns an empty string:
>>> input() # Python3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
EOFError
