
Hi, Please make this command for Python (if possible):
In fact make a new type of print command which can print strings and integers. Sincerely yours, Ali.

Hi Ali,
In fact make a new type of print command which can print strings and integers.
That's not the curent print implementation which is blocking you for doing what's you're trying to do, but the integer type which refuses to "add" a string to itself. But print can do what you want to do, try: print(x, y) This way print will print 1, then a without trying to 'add' them together. If you're concerned with the space prints adds when given two parameters, you can use: print(x, y, sep='') Hope it helps, bests, -- [Julien Palard](https://mdk.fr)

Hi Ali,
In fact make a new type of print command which can print strings and integers.
That's not the curent print implementation which is blocking you for doing what's you're trying to do, but the integer type which refuses to "add" a string to itself. But print can do what you want to do, try: print(x, y) This way print will print 1, then a without trying to 'add' them together. If you're concerned with the space prints adds when given two parameters, you can use: print(x, y, sep='') Hope it helps, bests, -- [Julien Palard](https://mdk.fr)
participants (2)
-
Ali Mohseni Roodbari
-
Julien Palard