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

EARTH smog | bricks AIR -- mud -- FIRE soda water | tequila WATER

Working...