fork(3) download
  1. # your code goes here
  2. print('½'.isnumeric()) # True
  3. print(int('½')) # ValueError
  4.  
Runtime error #stdin #stdout #stderr 0.14s 23608KB
stdin
Standard input is empty
stdout
True
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
ValueError: invalid literal for int() with base 10: '½'