Arbitrary & Arbitrary Keyword Arguments in Python Made Easy | Python Made Easy Series | Codelligent

Sdílet
Vložit
  • čas přidán 27. 03. 2024
  • In this video of our Python series, you will learn what are arbitrary arguments and arbitrary keyword arguments when working with functions in Python. You will also learn how to call a simple function with the keyword arguments or named parameters.
    The topics being covered:
    00:26 - Code demo begins
    01:23 - Arbitrary Arguments
    03:51 - Mixing normal and arbitrary arguments
    05:50 - Keyword Arguments while calling function
    10:15 - Arbitrary Keyword Arguments
    14:05 - Mixing normal and arbitrary keyword arguments
    16:06 - Subscribe
    You can find the example code file here:
    github.com/kajin88/codelligen...
    If you are new to Python, start the series from,
    • Introduction to Python...
    If you found this video helpful don’t forget to hit the Like button! 👍🏼
    If you wish to join us for future learning, do Subscribe this channel and hit the Bell icon to get the future video notifications! 📣
    #python #pythonprogramming #pythontutorial #pythonforbeginners #codelligent #programming #coding
    -----------------------------------------------------------------------------------------
    We believe in - "Knowledge increases by sharing!!"
    Who are we?
    We are a bunch of IT professionals who love to teach apart from our regular coding work! 👬👫
    Why this Channel?
    In our career, we have noticed that many new programmers get confused while coding, even though they are aware of that concept. We help them understand the concept in our office. 🤗
    So, we thought why not share these concepts in the same easy to understand way to the whole world.
    Let every one who is starting their coding journey get to learn and become a better programmer! 😊
    We have taught many people offline, and now trying to make an online presence to help wider audience. 💖
    Let's Code!
    #LoveForCoding #LoveForTeaching #Codelligent #LetsCode #India
    -----------------------------------------------------------------------------------------
    Thumbnail background image credit: www.freepik.com

Komentáře • 4

  • @shahidabbasi1127
    @shahidabbasi1127 Před 2 měsíci

    Good Video on python

  • @sarandeepkaur1573
    @sarandeepkaur1573 Před měsícem

    In the video when you showed arbitrary keyword argument examples- you showed- def showExp(**exps) and then used 2 parameters for k,y in the for loop. But as i understand there can be any number of arguments in an arbitrary keyword argument. How would you handle such scenarios?

    • @CODELLIGENT
      @CODELLIGENT  Před měsícem

      Yes in the arbitrary arguments (the variable 'exps') can have any number of arguments. But the variable 'exps' will be of type Dictionary having many key-value pairs inside it.
      So, when we use 'k, v' variables in the for loop, basically its looping through every item in the 'exps' variable and putting its key in 'k' and corresponding value in 'v'.
      Hope this makes things clear. 😊