How to use "of course" in a sentence?

We use of course to refer to things that are obvious or already known to the speaker and listener, or to everybody:
'A tropical climate is, of course, very humid, so we sweated all the time.'
We use of course when a situation or piece of information is not surprising:
'Our car broke down on the way to the station so, of course, we missed the train and had to buy new tickets. It cost us £80!'
We use of course to mean ‘yes’ when we are giving permission to someone to do something:
A: Can I borrow your newspaper for a minute?
B: Of course. Go ahead.
Warning: We don’t use of course when we answer a question and give the listener information they do not already know. This can sound impolite. Instead, we use the same verb in our answer that was used in the question:
A: When you were in London, did you go to any shows?
B: Yes, we did. We went to three.