Set Method (discard Update ) in Python

Veröffentlicht am: 11 Juni 2020
auf dem Kanal: Alvin IT Solutions (AITS)
111
10

#MTechComputerAcademy #setMethodInPython #RemoveAndDiscard #WhatIsSetInPython #WhySetInPython

Hi friends ! welcome in M-Taech computer Academy.

Today in this session we will learn what is discad and remove
1 discard()
2 remove()

discard()
Python provides discard() method which can be used to remove the items from the set.

remove()
Python also provide the remove() method to remove the items from the set.

Difference between discard() and remove()

Despite the fact that discard() and remove() method both perform the same task, There is one main difference between discard() and remove().

If the key to be deleted from the set using discard() doesn't exist in the set, the python will not give the error. The program maintains its control flow.

On the other hand, if the item to be deleted from the set using remove() doesn't exist in the set, the python will give the error.



What is set in python
   • What is set in python (Syntax to crea...  

...................................
Web Scraping Tutorials using bs4 (BeautiFulSoup)
   • What is Web Scraping and its use  

............................
Tuple in python
   • python tutorial for beginners tuple i...  
.....................
Indexing and Slicing in python
   • Python slicing and indexing in tuple  

....................................
How To install python
   • Install Python On Window In Hindi  
..............................
Download python
https://www.python.org/downloads/
.....................................
Affiliate Marketing से महीने के हजारों रुपये कैसे कमाए!!
   • Affiliate Marketing से महीने के हजारो...  
...................................................
Affiliate marketing se hazaro rupaye kaise kamayen
   • Affiliate Marketing से महीने के हजारो...  


What is canva and how to use it
   • What is canva how to use it ?  


min(), max() functions
   • min(), max() function in list  

clear() , copy() and sort() functions in list
   • clear(), sort() and copy() functions ...  


insert() and pop() function in list
   • insert() and pop() function in list  


how to update list in python
   • How to update list in python  


what is list and how to create list in python
   • What is list in python  

count(), index() , reverse() function in list
   • count(), reverse(), index() functions...  

Python parsing html with BeautifulSoup
   • Python parsing html with  beautifulsoup  

Getting started with web scraping using pythn    • Getting Stsrted with web Scraping  us...  

How to install jupyter notebook on widnow 10
   • How to install Jupyter Notebook on wi...  


your first web app;ication using node.js
   • Your First Web Application Using Node.js  

Pyhon Tutorial in hindi    • What is python and its festures  
.......................................
Facebook page   / mtechcomputeracademy  
.................................
Instagram   / mtechcomputeracademy  
.......................................................
Twiter   / mtech_academy  


Auf dieser Seite können Sie das Online-Video Set Method (discard Update ) in Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Alvin IT Solutions (AITS) 11 Juni 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 111 Mal angesehen und es wurde von 10 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!