Quick actions

cmd+k|ctrl+k

Navigation

Languages

ZTM-TCPD-05

Snippet info

Language

Python

Visibility

public

Author

lawkoh

Created

2025-03-25T14:33:54.042804Z

Updated

2025-03-25T14:41:42.833631Z

# int float
# complex -> complex number from a real part + an optional imaginery part (real + imag*1j) where imag defaults to O.

# 5 store in binary base 2 - that is 0 1
print(bin(5)) # return the binary representation of the integer number
# 0b101, 0b in python means binary number, 5 in binary number is 101
print(int('0b101', 2))
INFO