DEV Community

dongdiri
dongdiri

Posted on

DAY19: Python day 27

Advanced python arguments

  • arguments with default values
def function(a=1, b=2, c=3):
Enter fullscreen mode Exit fullscreen mode

unlimited positional arguments

  • put (*args) when defining the function
  • creates a tuple
  • often goes with a loop

unlimtited keyword arguments

  • put (**kwargs) when defining function
  • creates a dictionary
  • use .get() method to access values without error

GUI: graphical user interface

  • intro to tkinter
  • widgets: button, entry, label
  • pack(), grid() functions

Top comments (0)