Australian Prime Minister Julia Gillard has had a sandwich thrown at her while visiting a school in Canberra.

She was visiting Lyneham High School when the prankster struck.

It is the second time this month that a sandwich has been thrown in her direction, the first was at school in Queensland on 8 May.

Ms Gillard seemed unfazed by the incident which she laughed off when questioned by reporters.