training day6

                                             Python

Python has further two applications :- 1. web application eg:- Django
                                                              2. desktop application eg:- tkinter


Libraries for GUI

Pre defined libraries are :
  • Kivy
  • python QT
  • Wx python
  • tkinter
Steps for making GUI Application
  1. Import tkinter module
  2. create GUI application main window
  3. Add widget
  4. Enter main event loop

                                                LAMBDA FUNCTIONS

Lambda arguments : expression

example : x = lambda a : a+10
                 print(x(5))
                  output = 15

example : lambda a,b : a*b
        print(x,(5,2,))

example : p = int(input("Enter first variable"))
                q = int(input("Enter second variable"))
                r = int(input("Enter the third variable"))
s = lambda p,q,r : p+r+q
print(s(p,q,r))   

Comments