Most commonly used function to convert Python int to binary is bin().num2 = 7print('The binary equivalent of 1 is:', bin(num1))
確定! 回上一頁