Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

What is the difference between using list comprehensions and generator expressions?

There is no difference between list comprehensions and generator expressions.
List comprehensions produce the result as a list all at once in memory. Generator expressions do not produce the result all at once.
List comprehension produce the result as a list. Generator expressions produce a single value that is not a sequence.
List comprehensions produce the result as a mutable list. Generator expressions produce the result as an immutable tuple.
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon