On 4/12/2023 1:11 PM, Chris Angelico wrote:
On Thu, 13 Apr 2023 at 03:05, Ali Mohseni Roodbari
<ali.mohseniroodb...@gmail.com> wrote:
Hi all,
Please make this command for Python (if possible):
x=1
y='a'
wprint (x+y)
1a
In fact make a new type of print command which can print and show strings
and integers together.
Try:
print(x, y)
ChrisA
It puts a space between "1" and "a", whereas the question does not want
the space. print(f'{x}{y}') would do it, but only works for variables
named "x" and "y".
As happens so often, the OP has not specified what he actually wants to
do so we can only answer the very specific question.
--
https://mail.python.org/mailman/listinfo/python-list