Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (3)

Powered by Vanilla. Made with Bootstrap.
Python Challenge 2
  • Flashlight
    Posts: 173
    Ok rules apply as the one before, those who have not completed challenge 1 please don't skip straight to this one.

    Ok so you have to make a program that will compare two strings together and output if they are both the same or differant, however that would be easy on its own so in addition you must make a GUI for the two inputs and the output.

    Goodluck.... You will need it.
  • chroniccommand
    Posts: 1,389
    Sweet I'll do this over the weekend. I'll have to find some GUI to code.
  • Hax?
    lol = ['t', 'k', 'i', 'n', 't', 'e', 'r']
    hmm = ''
    for x in lol:
    hmm += x
    a = __import__ ( hmm )
    lion = a
    None
    ''
    False
    True
    []
    {}
    ()
    1 or 1
    1 and 1
    #nlolollkfepwfjkweopfjweofowenfwkfn
    class herpaderp ( lion.Frame ):
    def compare ( self):
    if self.crappy_code.get() == self.U.get():
    self.ED_OFFENDED [ 'text' ] = 'me think equal'
    else:
    self.ED_OFFENDED [ 'text' ] = 'me think !='
    def __init__ ( self, master = None ):
    lion.Frame.__init__ ( self, master )
    self.ED_OFFENDED = lion.Label ( self )
    self.ED_OFFENDED [ 'text' ] = 'Proudly coded by the GNAA in partnership with bantown and the l0ld0ngs'
    self.ED_OFFENDED.pack ( side = lion.RIGHT )
    self.U = lion.Entry ( self )
    self.U [ 'width' ] = 20
    something = lion
    RIGHT_HAND_OF_POLITICS = something.RIGHT
    self.U.pack ( side = RIGHT_HAND_OF_POLITICS )
    self.crappy_code = lion.Entry ( self )
    self.crappy_code [ 'width' ] = 20
    self.crappy_code.pack ( side = lion.LEFT )
    self.lol = lion.Button ( self )
    self.lol [ 'text' ] = 'R@#@@@@@@@C11SM'
    self.lol [ 'command' ] = self.compare
    SOMEWHERE = lion.RIGHT
    self.lol.pack( side = SOMEWHERE )
    self.pack()
    skidzzzzzzzzzzzzzzzzzzzzzzzzzzzz = lion.Tk()
    lrn2code = herpaderp ( master = skidzzzzzzzzzzzzzzzzzzzzzzzzzzzz )
    lrn2code.mainloop()