I would like to create a pretty simple code to get multiple string inputs and show as Unicode characters, let's say for example:
2119 01b4 2602 210c 00f8 1f24 (This should show 'Python' with some symbols)
But I keep getting the following exception:
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: truncated \uXXXX escape
I'm trying to use '\u' to keep it simple, but if there's no other way to do this, I wouldn't bother.
My code:
while True:
string = input()
print(f'\u{string}', end='')
I searched and found something in Swift which is exactly what I want to do in Python, but I didn't quite understand that: Print unicode character from variable (swift).