a = [1, 2, 3, 4] #define a list
b = a.index(6) # what element in the list has the value of 6? Answer: none
Simple way:
a.remove[6]
a = [1, 2, 3, 4] #define a list
b = a.index(6) # what element in the list has the value of 6? Answer: none
Simple way:
a.remove[6]
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.