Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3623078
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:20:20+00:00 2026-05-18T23:20:20+00:00

In The Zen of Python, by Tim Peters, the sentence Complex is better than

  • 0

In “The Zen of Python”, by Tim Peters, the sentence “Complex is better than complicated” confused me. Can anyone give a more detailed explanation or an example?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:20:21+00:00Added an answer on May 18, 2026 at 11:20 pm

    although complex and complicated sound alike, they do not mean the same in this context.

    The Zen therefore says: It is okay to build very complex applications, as long as the need for it is reasonable.

    To give an example:

    counter = 0
    while counter < 5:
       print counter
       counter += 1
    

    The code is very easy to understand. It is not complex. However, it is complicated. You do not need to manually perform most of the steps above.

    for i in xrange(5):
       print i
    

    This code is more complex than the above example. But: knowing the documentation of ´xrange´ you can understand it by a single glance. Many steps are hidden behind an easy-to-use-interface.

    As processes grow bigger, the gap between complicated and complex gets wider and wider.

    A general rule of thumb is to follow the other principles of the Zen of Python:

    If it is hard to explain, it is not a good idea.

    If it’s easy to explain, it might be a good idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I make zen coding support less file in sublime text2?
The Zen of Python states that there should only be one way to do
I have tried the ReSharper Power toy Zen Coding and found it can only
Possible Duplicate: Special (magic) methods in Python who can tell me what can call
I'm working with the Zen theme in Drupal and have discovered that I can
how can we edit the top menu of Zen Cart? I have installed a
Background : It had been a while since I had read https://stackoverflow.com/questions/228181/the-zen-of-python so I
I am a newbie and seeking for the Zen of Python :) Today's koan
I'm considering Prestashop for a new project. It seems to be younger than Zen-Cart
single zen cart for different shops. I would like to know how can we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.