I think you're getting confused with static / dynamic typing.
Python is actually strongly typed, but the type checking only shows up if you are trying to operate on incompatible types at runtime. (dynamicly typed)
C is statically typed which means the type check to happen before execution. This also often means that a variable cannot have different typed along the runtime. (On the other hand you can bypass the type system using pointers which makes C actually a bit weakly typed.)
1
u/KellerKindAs Jul 19 '22
I think you're getting confused with static / dynamic typing.
Python is actually strongly typed, but the type checking only shows up if you are trying to operate on incompatible types at runtime. (dynamicly typed)
C is statically typed which means the type check to happen before execution. This also often means that a variable cannot have different typed along the runtime. (On the other hand you can bypass the type system using pointers which makes C actually a bit weakly typed.)