Source Code:
(back to article)
x = 123 print("The number is {:x}".format(x)) print("The number is {:o}".format(x)) print("The number is {:b}".format(x)) print("The number is {:e}".format(x)) print("The date and time is {:c}".format(date))
Result:
Report an issue