>>> x='\u20ac'
>>> x
'€'
Is there a way to print the string '\u20ac' directly instead of that euro sign? (on python)
>>> x='\u20ac'
>>> x
'€'
Is there a way to print the string '\u20ac' directly instead of that euro sign? (on python)
Yes! The \ actually means “The next character is not a normal character.” But adding a \ before that will say: “This next character IS a normal character! Because -*- = +. Just add an extra \ in front.
“\\u20ac”