Please reload

December 2, 2016

https://youtu.be/s6vnu0SaFj4

Type is an interesting concept.

In normal life, we don't usually distinguish between numbers for counting (1, 2, 3, 4 ...) and numbers for keeping track of decimal values (3.14159, 1.50, etc).

In computers, however, these are very different an...

November 19, 2016

 

https://youtu.be/uyYPihp1DfA

print(5+5)

Prints 10

print("5"+5)

Gives the following error:

Can't convert 'int' object to str implicitly

and strangely the order matters

print(5+"5")

unsupported operand type(s) for +: 'int' and 'str'

Exactly why they are different in the way that...

Please reload

Search By Tags
Featured Post

Comments

November 30, 2016

1/1
Please reload

Archive
Please reload

RSS Feed

© 2019 BrainStemSchool.com