Strongly typed variables | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Strongly typed variables

Does the use of an interpreter obviate the need for strongly typed variables in Python

15th Apr 2019, 10:25 AM
Sanjay Kamath
Sanjay Kamath - avatar
7 Answers
+ 3
In .net we usually use data types like int, string etc
15th Apr 2019, 11:55 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 3
In .net using native data types is better than using variables AFAIK
15th Apr 2019, 2:17 PM
Sanjay Kamath
Sanjay Kamath - avatar
+ 3
I think(?) I get what he's saying. In C# there's the `dynamic` keyword so a variable's type can change during runtime. That's the default behaviour in python and he wants to know whether that's because python is interpreted. But it's not like I have a good answer to that either. Yup 😋
16th Apr 2019, 4:14 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 1
Python's types are strong. Are you talking about 'statically typed' instead?
15th Apr 2019, 10:41 AM
HonFu
HonFu - avatar
+ 1
Sanjay Kamath, I don't understand the relation of what you just wrote to your question or to what I wrote.
15th Apr 2019, 11:57 AM
HonFu
HonFu - avatar
+ 1
What, in your understanding, are variables?
15th Apr 2019, 2:24 PM
HonFu
HonFu - avatar
+ 1
I think(?) I get what he's saying. In C# there's the `dynamic` keyword so a variable's type can change during runtime. That's the default behaviour in python and he wants to know whether that's because python is interpreted. But it's not like I have a good answer to that either.
15th Apr 2019, 10:28 PM
Schindlabua
Schindlabua - avatar