Python Program
emp_list = [ 10, 20, 30, 40 ] for item in emp_list: if item < 30: emp_list.remove(item) print(emp_list)
Output is NOT
[ 30, 40 ]
Register for more technical hacks at WhatsApp - +91-9790881159
Interested in our training programs? Leave your details and LevelUp Technologies will contact you.
No comments:
Post a Comment