Scottish Deputy First Minister Nicola Sturgeon has said that the thoughts of "everybody across Scotland" are with the bereaved.
She said: "It is impossible to imagine the grief and loss they are experiencing but they should know that the thoughts and prayers of everybody across Scotland are with them at this unimaginably difficult time.
"Our thoughts are also with those who remain in hospital. We all hope and pray that those who have suffered injuries make a full and speedy recovery ...
"The police are not just dealing with a very complex incident, they are also dealing with the loss of colleagues, which makes this situation all the more difficult for them."
More top news
Ann Widdecombe is set to stand as a candidate for Nigel Farage's Brexit Party, the former shadow home secretary has announced.
Mark Carney took up the post on July 1, 2013 and will step down on January 31 next year.
The attacks in Sri Lanka are a sign that ISIS still has an influence in the region, despite many thinking it might have dissipated.