This page may be out of date. Submit any pending changes before refreshing this page.
Hide this message.
Quora uses cookies to improve your experience. Read more

Have I have fallen in love with Python because she is beautiful?

30 Answers
Vaibhav Mallya
Vaibhav Mallya, Proud Parseltongue. Passionate about the language, fairly experienced (since 2007). Some minor contribution...
There's nothing wrong with falling in love with a programming language for her looks. I mean, let's face it - Python does have a rockin' body of modules, and a damn good set of utilities and interpreters on various platforms. Her whitespace-sensitive syntax is easy on the eyes, and it's a beautiful sight to wake up to in the morning after a long night of debugging. The way she sways those releases on a consistent cycle - she knows how to treat you right, you know?

But let's face it - a lot of other languages see the attention she's getting, and they get jealous. Really jealous. They try and make her feel bad by pointing out the GIL, and they try and convince her that she's not "good enough" for parallel programming or enterprise-level applications. They say that her lack of static typing gives her programmers headaches, and that as an interpreted language, she's not fast enough for performance-critical applications.

She hears what those other, older languages like Java and C++ say, and she thinks she's not stable or mature enough. She hears what those shallow, beauty-obsessed languages like Ruby say, and she thinks she's not pretty enough. But she's trying really hard, you know? She hits the gym every day, trying to come up with new and better ways of JIT'ing and optimizing. She's experimenting with new platforms and compilation techniques all the time. She wants you to love her more, because she cares.

But then you hear about how bad she feels, and how hard she's trying, and you just look into her eyes, sighing. You take Python out for a walk - holding her hand - and tell her that she's the most beautiful language in the world, but that's not the only reason you love her.

You tell her she was raised right - Guido gave her core functionality and a deep philosophy she's never forgotten. You tell her you appreciate her consistent releases and her detailed and descriptive documentation. You tell her that she has a great set of friends who are supportive and understanding - friends like Google, Quora, and Facebook. And finally, with tears in your eyes, you tell her that with her broad community support, ease of development, and well-supported frameworks, you know she's a language you want to be with for a long, long time.

After saying all this, you look around and notice that the two of you are alone. Letting go of Python's hand, you start to get down on one knee. Her eyes get wide as you try and say the words - but she just puts her finger on your lips and whispers, "Yes".

The moon is bright. You know things are going to be okay now.
Your feedback is private.
Is this answer still relevant and up to date?
Ankit Mahato
Ankit Mahato, Storyteller, Artist, Pythonista.
Beauty is just one aspect.
You have fallen in love with Python,
Because life is short, you need Python.


Also its philosophy
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

follow the thread to know what it stands for http://stackoverflow.com/questio...
Ashish Chandra
Ashish Chandra, Pythonista for life

Yes, I have fallen in love with this beautiful lady from the first day I met her, call it love at first sight, but she has never failed to amaze me. Why, get to know for yourself.

  • She is beautiful and easy to understand

I cannot stress enough how beautiful it feels to code in Python because of its neat flawless syntax. There are no braces for you to keep on continually balancing, white spaces and tabs automatically do it for you . There are no semicolons to remember, no type safety to constantly bug you.

  • She is easily balanced between high level and low level programming

The ease of balancing high-level programming with low-level optimization is a particular strong point of Python code. Python code is meant to be as high level as reasonable – I’ve heard that in writing similar algorithms, on average you would write six lines of C/C++ code for every line of Python. However, as with most high-level languages, you often sacrifice code speed for programming speed.

  • She is forgiving

We don't even have to declare the type, variables can be everything (int, string, float)

a = 'Ashish'
b = 'Chandra'
c = a + b
print c

Now here comes a cool thing about Python. We can switch two variables without using a third one:

x, y = y, x

Printing in Python:

print "I love you Python"
  • She comes from a very influential family(Awesome set of Libraries)

Whatever project you are doing, you have rich set of libraries to chose from,  be it on image processing, or natural language processing, or web scraping, virtually anything, and Python has all the libraries you need. These libraries come with excellent documentation.

  • She is only girl in the world, with clear cut documentation

What else you need, Welcome to Python.org documentation is the best in the world, and you don't have to search virtually anywhere to get the help.

  • She is strict with her principles (OOP Support)

Python has been an object-oriented language since it existed. Because of this, creating and using classes and objects are downright easy.

# class definition
class LoveMe:
    love = 100
    
    def dead(self):
        return self.love == 0
    
# using the class
me = LoveMe()
print me.dead()
  • She is handy and good at shortcuts
    • Need to start a http web server, one liner will do
python -m SimpleHTTPServer
    • Need to quickly create a list

Take the numbers and multiply each by 3:

# gives [0, 10, 20, 30]
[x * 3 for x in range(4)]
    • Functional Magic,  map, filter, zip, reduce enough said.

Now tell me, ain't my girl friend beautiful and will make any one jealous.

Biogo Nunes
Biogo Nunes, Hadoop Developer,Big Data mania

Python is an object-oriented language, just like JavaScript, C++, C#, Perl, Ruby, and other key programming languages. Python also requires less code to complete basic tasks, making it an economical language to learn. Python code is often 3-5 times shorter than Java, and 5-10 times shorter than C++. Companies such as Google, Yahoo!, Disney, Nokia, and IBM all use Python.

There are many resources available online like Online Python programming Training and tutorial   But I personally found a site compact and very resourceful to learn python through interactive classes and video lectures for lifetime. I would like to share this link to you .

Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages. 

Tushar Saxena
Tushar Saxena, Programming with Python for 4 years, and counting ...
I was in a serious long-term relationship with another programming language - C++. I thought she gave me everything I could ever want - speed, flexibility, depth. But then I met Python, and she opened my eyes ... C++ was ugly and ungainly, made even the simplest things extremely complex, and would argue endlessly about the smallest of problems.

I've been with Python for 4 years now, and I haven't looked back since! Life is just so much easier now : I am more efficient, more organized and most importantly I have rediscovered the joy of programming! Thank you Python, I don't know what I'd do without you!
Darren Ong
Darren Ong, former Intern Software Engineer at Accenture (2015-2016)

Python is beautiful.

It is so concise and direct. You do not need to use ugly .substring() method in order to retrieve a specific range of indexes in a String, str[2:5] in python gets you that.

It is there for you whenever you need it. Want to scrap a website? Use an awesome library called scrapy which comes with caching, throttling and many more options. Intend to create a web api, Djanjo will be there for you. Hmm... Maybe you want to do some data science, tensorflow, theano, scikit will help you analyse more with less. You need to do some image processing such as resizing, adding color effects, just use PIL.

It is so clean. No more curly braces for if conditions, no more semi colons.

Jie Wang
Jie Wang, works at Shanbay.com
Might be off topic, but in a household Chinese legend(http://en.wikipedia.org/wiki/Leg...), a female python turned into a beautiful woman, and developed a romantic relationship with a young scholar. Together they defied the norms in heaven and earth, and fought against all odds to be together.

This legend has been adapted into a number of TV shows and films, featuring some of the most attractive actress in China/Hong Kong/Taiwan

(Angie Chiu, in New Legend of Madame White Snake www.imdb.com/title/tt2162790/)


(Joey Wang, in Ching Se http://www.imdb.com/title/tt0106...)
Saisrikanth Rathakrishnan
Saisrikanth Rathakrishnan, Programming Enthusiast, Talks about Life for hours

Python is like the "Fast Food" where they deliver everything very fast. She is HOT.  She has this talent of attracting people near her. Well, there have been times I have felt that she is not the best. I later realized that I wasn't using her properly.

It has always been easy for me to give a O(n) running time while coding with python compared with many other languages. It is possible in python, because she is a superhero with all capabilities from her birth. You can tell that she is slow at times, but she beautifully accomplishes her job.

I have always loved coding in Python because she is easy to understand. I can type python codes in a notepad and execute it easily ( I can remember keywords easily) And, the syntax and structure isn't hard to adapt to.

I used to be someone who never codes with a proper syntax of indentation in any programming language and my codes are hard to be understood. But, Python changed me. She executes only if I wrote her with proper indentations. She is the "Dominant" Girl friend. She would like you only when you satisfy her requirements.

Now, I am someone who follow indentations for all the languages. She transformed me into a person who could write readable codes.

I wouldn't term Python as the best. But, she is the best place to begin to learn coding. She should be your "First Love". If you are planning to live with her for the entire life, you would need a divorce at some point of time in your life. Marry someone else :)

For anyone who doesn't understand the power of Python, try to read a file in Python. She does that in less than 2 lines :)

In other languages