Rule reminder
Register appropriateness depends on: who you are speaking to (authority, peer, stranger, family), the setting (professional, official, casual), and the medium (formal letter, text, phone call).
You email your professor: 'Ciao Prof, ho dimenticato il compito!' Is this appropriate?