Java is a static types language, while Python is dynamic. This has impact on how you design, write, and troubleshoot programs. In case of dynamic typing, the types are checked run-time and in case of static, types are checked compile time.
Java way:
String array[] = {"I am the first", "second", "3"}
Python way:
array = ["I am the first", "second", 3]