I am new to Julia and posting to forums so please excuse any bad formatting, I have some background with python so I have been trying to translate my python code to Julia which led me to being confused why this code is returning (nothing, nothing,…) after it returns what i wanted it to return
I was thinking it was due to the "println()"s but i went in and changed them to “print()” and added the \n inside it but it still prints out the same thing.
function sign()
ran = rand(1:2)
if ran == 1
return (println(" ______ ______ __ __ ______ "),
println("/\\___ \\ /\\ ___\\ /\\ \\/\\ \\ /\\ ___\\ "),
println("\\/_/ /__ \\ \\ __\\ \\ \\ \\_\\ \\ \\ \\___ \\ "),
println(" /\\_____\\ \\ \\_____\\ \\ \\_____\\ \\/\\_____\\ "),
println(" \\/_____/ \\/_____/ \\/_____/ \\/_____/ "))
else
return (println(" _/_/_/_/_/ "),
println(" _/ _/_/ _/ _/ _/_/_/ "),
println(" _/ _/_/_/_/ _/ _/ _/_/ "),
println(" _/ _/ _/ _/ _/_/ "),
println("_/_/_/_/_/ _/_/_/ _/_/_/ _/_/_/ "))
end
end
sign()
Which returns this