Perl is worse than Python because people wanted it worse. -- Larry Wall
I can remember many Python idioms because they're simpler. That's one more reason I program faster [in Python]. I still have to look up how to open a file every time I do it in Java. In fact, most things in Java require me to look something up. -- Bruce Eckel
Python ... is compact -- you can hold its entire feature set (and at least a concept index of its libraries) in your head.
-- Eric S. Raymond
"Python has been an important part of Google since the beginning, and remains so as the system grows and evolves. Today dozens of Google engineers use Python, and we're looking for more people with skills in this language." said Peter Norvig, director of search quality at Google, Inc.
"NASA is using Python to implement a CAD/CAE/PDM repository and model management, integration, and transformation system which will be the core infrastructure for its next generation collaborative engineering environment. … said Steve Waterbury, Software Group Leader, NASA STEP Testbed .
"Python enabled us to create EVE Online , a massive multiplayer game, in record time. The EVE Online server cluster runs over 25,000 simultaneous players in a shared space simulation, most of which is created in Python. The flexibilities of Python have enabled us to quickly improve the game experience based on player feedback," said Hilmar Veigar Petursson of CCP Games .
A iterable supports indexing, slicing, and being passed to the built-in function len.
Iterables that are not sequences include dictionaries (iteration gives the keys of the dictionary, one at a time in arbitrary order), file objects (iteration gives the lines of the text file, one at a time), and many more, including iterators and generators.
Python’s “Polymorphism” is NOTHING to do with inheritance.
As said, Python variables do NOT have a type.
Python can use one variable to hold any kind of objects.
show() Base x=A() #you can also try this class Base; x.show() array = [ A(),B(),C() ] class A extends Base; x=B() for x in array: class B extends Base; x.show() x.show() class C extends Base; x=C() Base x; x.show() x= new B(); x.show(); or interface Base, whatever. show() A show() B show() C