copy() method for set

All set methods

copy(), takes no argument.

Returns : copied set.
my_set={'a','b','c','d','e'}
my_set2=my_set.copy()
print(my_set2)
Output is here
{'d', 'a', 'b', 'c', 'e'}
All set methods Questions with solutions on set discard()

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here





    Python Video Tutorials
    Python SQLite Video Tutorials
    Python MySQL Video Tutorials
    Python Tkinter Video Tutorials
    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer