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. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Python issue with implicit data types - 34C - 08-01-2024, 11:08 AM
RE: Python issue with implicit data types - nbc12 - 08-01-2024, 08:13 PM
RE: Python issue with implicit data types - bxparks - 08-01-2024 09:33 PM
RE: Python issue with implicit data types - toml_12953 - 08-01-2024, 09:23 PM
RE: Python issue with implicit data types - Albert Chan - 08-02-2024, 04:13 PM
RE: Python issue with implicit data types - 34C - 08-03-2024, 09:25 AM
|
User(s) browsing this thread: 5 Guest(s)