Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Re:Back to Basic (Score 1) 1119

However, if you try to multiply an Int by a String, it'll throw the same type errors any other strongly type language will.
Actually, Python does allow you to multiply an int and a string, but like you said, it assumes you know what you're doing and allows it for convenience.

>>> 5 * "foobar"
'foobarfoobarfoobarfoobarfoobar'

Slashdot Top Deals

The best way to accelerate a Macintoy is at 9.8 meters per second per second.

Working...