+ 3
How python automatically understands its datatype without explicitly mentioned. How its possibile. How it compiles programs?pls
plz anyone answer me.
4 Answers
+ 1
int is a number.
float is a number that has a . following numbers
string is capsulated by equal number of " or '
tuple is capsulated by ( )
list is capsulated by [ ]
dict is capsulated by { }
I'd quess the interpreter looks for these and translates it accordingly.
if you are looking for a better more technical answer read python documentation or wait for another answer :)
+ 5
very Good question. we know it can determine the datatype of a variable without explicit declaration.. other languages such c# has the same ability, but how this process is done is a very good question..
hope to get the answer soon
+ 2
It's interpreter is built in this way.