Quick actions

cmd+k|ctrl+k

Navigation

Languages

Bin e Complex1

Snippet info

Language

Python

Visibility

public

Author

sasso

Created

2025-12-06T16:06:59.95275Z

Updated

2025-12-06T16:51:15.771757Z

print(bin(5))
print(int('0b101' , 2))

#| Sistema         | Base | Esempio per il numero 5      | Nota in Python                                |
#| --------------- | ---- | ---------------------------- | --------------------------------------------- |
#| **Binario**     | 2    | `101` (leggi “uno zero uno”) | `0b101`                                       |
#| **Ottale**      | 8    | `5`                          | `0o5`                                         |
#| **Decimale**    | 10   | `5`                          | normale numerazione che usiamo tutti i giorni |
#| **Esadecimale** | 16   | `5`                          | `0x5`                                         |
INFO