0

How do programs know that a variable can be converted?

For example, how does Python know that a string that has only a number can be converted to an integer?

9th May 2021, 1:22 AM
Koloroj
3 Respostas
+ 1
🅰🅹 🅐🅝🅐🅝🅣 Oh, okay. Thanks for answering!
9th May 2021, 6:28 AM
Koloroj
0
Koloroj Because python programmed like that to behave like this!
9th May 2021, 1:35 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
0
Koloroj There are some background process works in every programming language. Everything whichever we see on the screen, first happens in background then gives results according to the process. So whenever we enter any number or string then it will be first check in background then will give result according to that checking. Every languages are written in that way so computer can understand what is happening. Remember computers and programmings are made by a human.
9th May 2021, 6:27 AM
A͢J
A͢J - avatar