julia> function input(prompt::String = "") print(prompt * " ") chomp(readline()) end
input(generic function with 2 methods)
julia> input("Something here:")Something here: hello"hello"
julia> int(input("Enter a number:"))Enter a number: 33
julia> typeof(ans)Int64
julia> input() # I want ot get rid of the single space.
<--here is a sapce
"<--here is a sapce"julia> function input(prompt::String = "") print(prompt) chomp(readline()) end
input(generic function with 2 methods)
>>> input() # Python3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
EOFError