Post Reply 
Python issue with implicit data types
08-01-2024, 09:33 PM (This post was last modified: 08-01-2024 09:37 PM by bxparks.)
Post: #4
RE: Python issue with implicit data types
Lots of good advice, but allow me to nitpick the following:

(08-01-2024 08:13 PM)nbc12 Wrote:  Python isn't designed to be strongly typed

Python is generally considered to be a strongly but *dynamically* typed language. (See for example, this Stack Overflow article for a much longer discussion about weak/strong versus static/dynamic typing.)

In practice, this means that the type in Python is bound to the *value* not the variable. A variable, for example 'col', can be assigned to hold a float, an int, or a string, all within the same function. If you try to apply a string operation on 'col' while it is holding a float, then Python will throw a runtime exception.

I post this because other things on the internet about Python may be confusing without understanding this distinction.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Python issue with implicit data types - bxparks - 08-01-2024 09:33 PM



User(s) browsing this thread: 5 Guest(s)