print(int(5.5)) #to convert to int : output should be 5 print(float(5)) #to convert to float : output should be 5.0 ...
print(int('1011', 2)) # convert from binary to decimal int print(int('341', 8)) # convert from octal to decimal int print(int('21', 16)) # convert from hex to decimal ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results