Please reload

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