What useful features of Python don't have an equivalent in Java?

Started by Denny, November 17, 2016, 07:04:54 PM

Previous topic - Next topic

Ismail

Hello everyone, I have a question that has been bothering me for a long time, what useful features of python don't have an equivalent in java? Please, please help me as soon as possible.

Scott

dynamically typed
In Python, you never declare anything. An assignment statement binds a name to an object, and the object can be of any type. If a name is assigned to an object of one type, it may later be assigned to an object of a different type. That's what it means to say that Python is a dynamically typed language.

Python container objects (e.g. lists and dictionaries) can hold objects of any type, including numbers and lists. When you retrieve an object from a container, it remembers its type, so no casting is required.