Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



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

A mathematician is a device for turning coffee into theorems. -- P. Erdos

Working...