There are many ways to clear the list in Python. Let’s understand each of the method one by one with code examples. Method #1 : Re initializing the list Output: List1 before deleting is : [1, 2, 3] List1 after
Day: May 2, 2020
Python 3 – Hello WorldPython 3 – Hello World
Python is a high-level and Interpreter based language. Python was mainly developed for emphasis on code readability, and its syntax allows programmers to express concepts in fewer lines of code. So, without any ado, let’s start writing our first HELLO WORLD