Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python del

# Delete Variables
my_var = 5
my_tuple = ('Sam', 25)
my_dict = {'name': 'Sam', 'age': 25}
del my_var
del my_tuple
del my_dict

# Delete item from list
my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]
# deleting the third item
del my_list[2]

# Delete from dictionary
person = { 'name': 'Sam',
  'age': 25,
  'profession': 'Programmer'
}
del person['profession']
Comment

del en python

>>> directores = [ ["Stanley Kubrick", ["Senderos de Gloria", 1957]], ["Woody Allen", ["Hannah y sus hermanas", 1986]] ]
Comment

PREVIOUS NEXT
Code Example
Python :: django check user admin 
Python :: pandas get value not equal to 
Python :: cartesian product pandas 
Python :: simple graph in matplotlib categorical variables 
Python :: pyserial read 
Python :: python iterate list 
Python :: python one line if statement without else 
Python :: turn a list into a string python 
Python :: what is the difference between tuples and lists in python 
Python :: ImportError: /usr/local/lib/python3.7/dist-packages/cv2/cv2.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: __atomic_fetch_add_8 
Python :: remove element from dictionary python 
Python :: text widget get tkinter 
Python :: pandas change column dtype 
Python :: python loop go back to start 
Python :: odoo change admin password from database 
Python :: run code in python atom 
Python :: How To Display A Background Image With Tkinter 
Python :: dataset for cancer analysis in python 
Python :: python find index of first matching element in a list 
Python :: tuple plot python 
Python :: isdigit python 
Python :: py factors of a number 
Python :: python program to find ascii value of character 
Python :: max in a list python 
Python :: tokenizer in keras 
Python :: bot ping command 
Python :: python split string size 
Python :: how to search in django 
Python :: if statement in one-line for loop python 
Python :: python run in another thread decorator 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =