Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

How to print string with assigned variable and an "!" character?

$
0
0

I tried a simple code with julia:

x = readline()
print(String(“Hello, $x!”))

and Julia took the variable as “x!”, instead of “x”.
But, it was just fine when I changed the “!” with “.”

Is “!” a special character or else?

I need some explanation. Thank you!

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles