My code :
a='hello' b= 10 c=a, b print (c)
The output :
('hello', 10)
the output i want :
hello 10
basically i want to remove the ‘ , () thanks in advance
Advertisement
Answer
Here is a list of all the ways:
#Using f-strings
print(f"{a} {b}")
#List Method
print(*c)
#For Loops
for i in c:
   print(i,end=" ") #MAKES NO SENSE AT ALL. But is a method.
#String Concatenation
print(a+b)
#Print Normally
print(a, b)