r/Python • • Jul 16 '18

Why is Python so slow?

https://medium.com/@anthonypjshaw/why-is-python-so-slow-e5074b6fe55b
11 Upvotes

51 comments sorted by

View all comments

25

u/13steinj Jul 16 '18

In a “Strongly-Typed” language, you have to specify the type of a variable when it is declared. Those would include C, C++, Java, C#, Go.

In a dynamically-typed language, there are still the concept of types, but the type of a variable is dynamic.

Yet another person doesn't know the difference between strong typing and static typing, apparently.

0

u/[deleted] Jul 16 '18

[deleted]

1

u/demmian Jul 16 '18

C, for example, has static typing, but it is weakly typed. [Python has dynamic typing, but it is strongly typed.]

1

u/[deleted] Jul 16 '18

soooo what does that mean?

1

u/demmian Jul 17 '18

You have to declare the types of variables in C; however, you can treat a char as an int.

You don't declare the types of variables in Python. However, you can treat a type as another type.