Bevezetés a Python programozásba

                        sprite = Sprite('Tobi')

                        def interestCalculator(principal, rate, time):
                          amount = principal + principal*rate*time/100
                          
                          return amount
                          
                        sprite.input("Enter the principal amount")
                        principal = float(sprite.answer())
                        sprite.input("Enter interest rate")
                        rate = float(sprite.answer())
                        sprite.input("Enter the time")
                        time = float(sprite.answer())
                        
                        sprite.say("Amount is: "+ str(interestCalculator(principal,rate,time)), 2)