#How do i define escape symbol as a string?
1 messages · Page 1 of 1 (latest)
I don't see why it would be invalid. Can you paste the code here?
name = """
___
/ /\
/ /:/_
/ /:/ /\
/ /:/ /::\
//:/ /:/:
\ :/:/~/:/
\ ::/ /:/
__/ /:/
//:/
__/
"""
try putting raw before the """
Oh, backslash needs to be escaped with ... backslash. Try
name = """
/ /\\
/ /:/
/ /:/ /\\
/ /:/ /::\\
//:/ /:/:\\
\\ :/:/~/:/
\\ ::/ /:/
_/ /:/
/__/:/
_/
"""
julia> println("""
/ /\\
/ /:/
/ /:/ /\\
/ /:/ /::\\
//:/ /:/:\\
\\ :/:/~/:/
\\ ::/ /:/
_/ /:/
/__/:/
_/
""")
/ /\
/ /:/
/ /:/ /\
/ /:/ /::\
//:/ /:/:\
\ :/:/~/:/
\ ::/ /:/
_/ /:/
/__/:/
_/
That helped, thank you!
Gave +1 Julia Points to @left halo