+ 3
Ă· is not working even its fixed with chr(247)
so im making cal app but i have 2 problems,the one is fixed by Tibor Santa which changing ("x") to chr(120) now the bug2 is same but Ă·,i tried to fix by changing ("Ă·") to chr(247) but its still not working https://code.sololearn.com/cGnEynbsJ4Cb/?ref=app
3 Answers
+ 4
The character you want to print has the integer value 246. I obtained this result with the following loop :
for i in range(200,256):
print(i, chr(i))
If you want to see from 0 to 255, you'll have to do something like this :
for i in range(256):
try:
print(i, chr(i))
except:
print(i, "not printable")
+ 3
chr(247) shows â for me.
Weird thing is, print('Ă·') also shows â in Code Playground. When I try to print('â'), I get a charmap error stating that the unicode cannot be mapped.
You might want to fix that typo on line 19: int2 instead of int, ofc.
When I input
â
1
2
it outputs 0.5, which is the correct division result. However, Ă· should be chr(247) and not â. I'm a little lost on this one. I think it has to do with setting the proper/default encoding standard.
+ 2
Thx i thought Ă· is chr 247 because i know from website