Demo entry 6633740

rt ty

   

Submitted by eww on Aug 05, 2017 at 06:23
Language: Python 3. Code size: 292 Bytes.

import time

class Song:
    """Karaoke"""
    def __init__(self, letra):
        self.letra = letra

    def canta(self):
        for verso in self.letra:
            print (verso)
            time.sleep(2)

cumple = Song(["feliz", "cumpleaƱos", "a", "ti"])

cumple.canta()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).