How to put a space between two string in Python

1 Answer

0 votes
str1 = "Python"
str2 = "Java"

print(" ".join([str1, str2]))

str3 = " ".join([str1, str2]);

print(str3)




'''
run:

Python Java
Python Java

'''

 



answered Sep 26, 2021 by avibootz

Related questions

1 answer 88 views
1 answer 106 views
3 answers 393 views
1 answer 132 views
132 views asked Sep 5, 2019 by avibootz
1 answer 185 views
1 answer 223 views
...