Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is the difference between add() and update() Functions in Set?

Satinder Rawal answered on April 17, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • diffrence between put and patch
  • how to combine sets using update() Function
  • difference_update() Function of sets in python

  • What is the difference between add() and update() Functions in Set?

    0

    We can use add() to add individual item to the Set,where as we can use update()

    function to add multiple items to Set.

     add() function can take only one argument where as update() function can take any

    number of arguments but all arguments should be iterable objects. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 17 2023
    Satinder Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.