Hands-On Artificial Intelligence for Beginners
上QQ阅读APP看书,第一时间看更新

Scalars

Scalars are nothing but singular, real numbers that can take the form of an integer or floating point. In Python, we create a scalar by simply assigning it:

my_scalar = 5
my_scalar = 5.098