3 ms·
“A”+”B” what do you feel should happen? “A”*6 what do you feel should happen?
by tomtimtall 8y ago
“A”+”B” what do you feel should happen? “A”*6 what do you feel should happen?
- enriquto 8y ago> “A”+”B” what do you feel should happen? Clearly, that should be undefined. You cannot sum two strings. Unless you are really deranged and you want it to be "C".
- a1369209993 8y ago"A"+"B" = Regex("A|B") = Regex("[AB]") # or maybe "A"+"B" !> [?]Error: cannot convert /A|B/ to type str "A"*6 !> TypeError: <str> * <int>