The function returns its sprite’s current costume number or name.
The example demonstrates the costume change in PictoBlox.
Code
sprite = Sprite('Tobi')
sprite.gotoxy(0, 0)
sprite.setsize(200)
sprite.switchcostume("Tobi")
while True:
sprite.say(sprite.costume("name"), 1)
sprite.nextcostume()
Output
Read More