Listing Features of Python which can not be seen in JAVA:

Listing Features of Python which can not be seen in JAVA:

  1. Python variables do not need explicit declaration to reserve memory space. The declaration happens automatically when you assign a value to a variable
  2. A group of individual statements, which make a single code block are called suites in Python.
  3. Python has five standard data types: Numbers, String, List, Tuple, Dictionary
  4. You can delete a single object or multiple objects by using the del statement
  5. The asterisk (*) is the repetition operator.
  6. Python support backward indexes in the list.
  7. We can use the "else" statement with the "for/while" loop.
  8. The pass statement in Python is used when a statement is required syntactically but you do not want any command or code to execute. The pass statement is a null operation.
  9. We can use the lambda keyword to create small anonymous functions.
  10. Dynamic Language for example - one variable can store any type of data during runtime.


To view or add a comment, sign in

More articles by Harshit Agrawal

Explore content categories