In micropython, you are usually not faced with this problem: I believe, there is only one case, where two operands are of different kind, namely, when a string is multiplied by an integer scalar, as inpythoncoder wrote: ↑Sun Aug 16, 2020 3:28 pmThat's a very good point. It calls into question whether there is much merit in MicroPython supporting only this subset.
Code: Select all
'micropython' * 3
Code: Select all
3 * 'micropython'