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

  • Home
  • SEARCH
  • 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

So according to the Zen of Python ... Explicit is better than implicit ...
Please tell me what the following sentence means in ' The Zen of Python
I am a newbie and seeking for the Zen of Python :) Today's koan
I was reading another question on Stack Overflow ( Zen of Python ), and
I'm struggling with Visual Studio 2008. I've used some form of Zen colors for
Inspired by this question. Why is there no list.clear() method in python? I've found
The more I delve into javascript, the more I think about the consequences of
I recently attempted adding Zen Coding to my tool box of software development box
I have a rather complex data structure I've implemented in Perl. This has been
I'm checking if two strings a and b are permutations of each other, and

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.