Monday, August 26, 2019

python - Calling type(1/2) returns integer?

Answer



So I noticed that calling :




print type(1/2) 


returns an integer, however shouldn't it be a float?

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...