Write a Python program to Concatenate N strings


Introduction

Write a Python program to Concatenate N strings. I have used python 3.7 compiler for debugging purpose.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. list_of_numbers = ['one', 'two', 'three']
  2. numbers = '-'.join(list_of_numbers)
  3. print()
  4. print("All Numbers: "+numbers)
  5. print()
  6.  

Result

python language techstudy.org

     





Related Topics




Popular Posts