Generally there is a parallel between Java and Python in how strings are converted to numbers
int x = Integer.parseInt(a, 2); //java
x = int(a,2) # python
But it does not seem to work for short
short x = Short.parseShort(a, 2); //java
x = short(a,2) # does not work in python
Does anyone know how to get short to work?
There is no
shortdata type in Python. Just useint.