Esempio n. 1
0
 def foo(self, red = 0, green = 0, blue = 0):
 
     # Insert your code here Kinga
     room = Room(123)
     room.changeColor(red, green, blue)
     # ---------------------------
     return """<html><body><div style="background-color:rgba(""" + red + "," + green + "," + blue + "," + """1); width: 100px; height: 100px;"></div></html></body>"""
Esempio n. 2
0
    def index(self):

        # execute stuff
        print "Testing the stuff"
        room = Room(123)
        room.changeColor(0, 0, 0)

        # return page content
        return "<b>Hello world!</b>"