Open in app
Home
Notifications
Lists
Stories

Write
Susan Thapa
Susan Thapa

Home

Mar 14

List Comprehension — an efficient and easy way to write code in Python

Comprehension does lots of tedious work quickly, efficiently, and more effectively than forming conditional statements and loops. Since the inception of Python, comprehension has been a helpful way to manipulate data. Instead of using conditional statements, List comprehension helps you avoid writing the if/else statement and create loops and execute…

Comprehension

3 min read

Susan Thapa

Susan Thapa

Data Science | Machine Learning | Python Programming | Applied Research | Interests in Artificial Intelligence

Following
  • Carla Martins

    Carla Martins

  • TDS Editors

    TDS Editors

  • Dario Radečić

    Dario Radečić

  • Matt Przybyla

    Matt Przybyla

  • Rebecca Vickery

    Rebecca Vickery

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable