Concatenation requires two strings (not a string and an integer; this triggers an error). Four methods of concatenation in Python include + operator, % operator, format () function, and join() method. Again, + operator is common and simple in Python....
One of the problems with having different versions of BASIC is that, although MID$ and SEG$ provide a similar function, the meaning of the third argument differs. For instance, if: a$ = “abcdefghijklmn” then MID$ (a$, 5, 7) = “efghijk” while SEG$ (a$, 5, 7) = “efg” ...