+ 3

How python automatically understands its datatype without explicitly mentioned. How its possibile. How it compiles programs?pls

plz anyone answer me.

14th Mar 2018, 1:10 PM
jansi
jansi - avatar
4 Réponses
+ 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 :)
14th Mar 2018, 2:31 PM
Markus Kaleton
Markus Kaleton - avatar
+ 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
14th Mar 2018, 1:30 PM
Ashraf Al_Absi
Ashraf Al_Absi - avatar
+ 2
It's interpreter is built in this way.
14th Mar 2018, 1:28 PM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar