By Ray Vega


2008-09-10 06:20:11 8 Comments

For example, if passed the following:

a = []

How do I check to see if a is empty?

Related Questions

Sponsored Content

39 Answered Questions

[SOLVED] How do I check whether a file exists without exceptions?

40 Answered Questions

[SOLVED] How to make a flat list out of list of lists?

29 Answered Questions

[SOLVED] Finding the index of an item given a list containing it in Python

  • 2008-10-07 01:39:38
  • Eugene M
  • 3605772 View
  • 2961 Score
  • 29 Answer
  • Tags:   python list indexing

21 Answered Questions

[SOLVED] How do I list all files of a directory?

  • 2010-07-08 19:31:22
  • duhhunjonn
  • 3896139 View
  • 3474 Score
  • 21 Answer
  • Tags:   python directory

25 Answered Questions

[SOLVED] How do I concatenate two lists in Python?

24 Answered Questions

[SOLVED] How to check if the string is empty?

16 Answered Questions

[SOLVED] How to clone or copy a list?

7 Answered Questions

[SOLVED] How do I get the number of elements in a list?

  • 2009-11-11 00:30:54
  • y2k
  • 3186785 View
  • 1880 Score
  • 7 Answer
  • Tags:   python list

20 Answered Questions

19 Answered Questions

[SOLVED] Accessing the index in 'for' loops?

  • 2009-02-06 22:47:54
  • Joan Venge
  • 1985352 View
  • 3396 Score
  • 19 Answer
  • Tags:   python loops list

Sponsored Content