how declaring a variable is different in python than other languages?
Answers
Answered by
1
Explanation:
Python vs Java
Python and Java are both programming languages, each of which has its advantages. The most significant difference between the two is how each uses variables. Python variables are dynamically typed whereas Java variables are statically typed.
In Python, type checking is deferred until runtime. There's no need to declare a variable name and type prior to using the variable in an assignment statement. Also, a Python variable name assigned to one type can be reassigned to an object of a different type. Python container objects, like lists and dictionaries, can contain objects of any type. Type of objects retrieved from the container objects are remembered so typecasting is unnecessary.
Answered by
1
In python we can take easily any veriable
I hope it will help you
I hope it will help you
Similar questions