Jump to content

mjbarr

New Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

mjbarr's Achievements

Lepton

Lepton (1/13)

0

Reputation

  1. In the book Introduction to Computation and Programming Using Python, Professor Guttag asserts that scalar objects are objects that are indivisible and lists int, float, bool, and None. He describes non-scalar objects as objects that have internal structure such as strings. This makes sense to me since a string is, in a sense, an array of characters. I was digging a little deeper and stumbled across an article that defines a scalar object as "an object that can have a single value" and includes both strings and complex numbers. This also makes sense to me if you follow this definition, so which is it? https://jpt-pynotes.readthedocs.io/en/latest/scalar-types.html https://www.amazon.com/Introduction-Computation-Programming-Using-Python/dp/0262529629
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.