How do I request user input from a running script in Julia? In MATLAB, I would do:
result = input(prompt)
Thanks
Reading user inputs from console in Julia can be done through inbuilt I/O methods like : readline() readlines()
An Array in Julia can be created with the use of a pre-defined keyword Array() or by simply writing array elements within square brackets([]). There are different ways of creating different types of arrays.
The easiest thing to do is readline(stdin)
. Is that what you're looking for?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With