+ 8

How to add arithmetic symbols like +,-,×,÷,% in the output(print) of the python program like as in c++ '/÷' A null character ???

I'm new to it I might require some help, Thank you for all who respond to this question.😇

21st May 2018, 5:12 PM
Arvind Raj
Arvind Raj - avatar
5 Réponses
+ 4
Try flipping the output stream to utf_16. Works for me here. https://code.sololearn.com/csTae6tX7D4l/?ref=app
21st May 2018, 10:49 PM
Kirk Schafer
Kirk Schafer - avatar
+ 4
I found myself another solution thank you for your advice
3rd Jun 2018, 12:28 PM
Arvind Raj
Arvind Raj - avatar
+ 3
Yes I have tried with double quotes in the print() of python buy it throws an error
22nd May 2018, 2:29 AM
Arvind Raj
Arvind Raj - avatar
+ 2
To represent the character you can use Universal Character Names (UCNs). The character 'ф' has the Unicode value U+0444 and so in C++ you could write it '\u0444' or '\U00000444'. The same goes for addition, subtraction... chars.
21st May 2018, 6:13 PM
Bebida Roja
Bebida Roja - avatar
+ 1
pretty sure "%" will work because it is enclosed by quotation marks
21st May 2018, 7:05 PM
hinanawi
hinanawi - avatar