From 41d5a244cc6fc879da2a2463faf02f0ae9d94e44 Mon Sep 17 00:00:00 2001 From: somanbhoyar <74195569+somanbhoyar@users.noreply.github.com> Date: Sun, 29 Nov 2020 20:30:04 +0530 Subject: [PATCH] update code if we want to delete element from list suppose if we cant to delete any element from list then we use del list[] --- basic_examples/python_lists.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/basic_examples/python_lists.py b/basic_examples/python_lists.py index 0251055..c1d15c2 100755 --- a/basic_examples/python_lists.py +++ b/basic_examples/python_lists.py @@ -26,4 +26,8 @@ jvm_langs.sort() print jvm_langs +# if we want to delete 1st element from list +del jvm_langs[0] +print(jvm_langs) +