+ 1
How to print on the same line in python 3 ?
e.g. I want to print , FIFA = [ "Brazil ", "poland"] I want to print" brazil vs poland" using indexes how to do ?
2 Answers
+ 10
FIFA = ["Brazil","Poland"]
print(FIFA[0] + " VS " + FIFA[1])
Or you can create new variable and do ~
FIFA = ["Brazil","Poland"]
res = FIFA[0] + " VS " + FIFA[1]
print(res)
+ 1
Thanks



