Skip to content

PythonTect

Python Tutorials

  • Home
  • Privacy Policy
  • About

list item

Python - Check If a List Is Empty

December 4, 2020 by ismail
Python - Check If a List Is Empty

The list is a popular type in Python programming language and it may contain no, single or more items. In some cases, we may need to check if the given list is empty. In this tutorial, we will examine different methods to check the list emptiness. Use not Operator with if Conditional Python List provides ... Read more

Categories Uncategorized Tags empty list, len, list, list item Leave a comment

Python List append() Method Tutorial

December 6, 2020October 20, 2020 by ismail
Python List append() Method Tutorial

Python List provides the append() method which is used to add a new item to the list. The append() method is provided via the list variable as a built-in method. The appended new items can be variable, a value, a list, dictionary, etc. append() Method Syntax The append() method has the following syntax where it ... Read more

Categories Uncategorized Tags append, extend, list, list item Leave a comment

PythonTect Social

  • Facebook
  • LinkedIn
  • RSS
  • Twitter

Recent Posts

  • Python os.path.exists() Method Tutorial
  • Python shutil Module Tutorial
  • Python String upper() Method Tutorial
  • Python hashlib Module Tutorial
  • How To List All Files Of A Directory In Python?

Recent Comments

    WiseTut || LinuxTect || PythonTect || WindowsTect
    © 2021 PythonTect • Built with GeneratePress