---
title: "Discussion on \"Important datatype conversions\" | Hashnode"
description: "Discussion on \"Important datatype conversions\". List to string\nList in string can be done using the \"join()\" method.\nlistx = [\"hello\",\"how\",\"are\",\"you\"]\nlistz =['1','2','3','4']\n\nstr1 = ' '.join(listx)\nstr2 = ','.join(listz)\nprint(str1)\nprint(str2)\n\n'''\nhello how are you\n1,2,3,4\n\n'''\n\nString to li..."
url: "https://hashnode.com/posts/important-datatype-conversions/65113064e514a4d09d0f9c4d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Important datatype conversions](https://codeverses.hashnode.dev/important-datatype-conversions?utm_source=hashnode&utm_medium=feed)

List to string List in string can be done using the "join()" method. listx = \["hello","how","are","you"\] listz =\['1','2','3','4'\] str1 = ' '.join(listx) str2 = ','.join(listz) print(str1) print(str2) ''' hello how are you 1,2,3,4 ''' String to li...

Sep 25, 2023 · 1 min read · codeverses.hashnode.dev  
Read the article

## Written by

[Kalidas VB](https://hashnode.com/@KalidasVijayBhak)

@KalidasVijayBhak

  
[View profile](https://hashnode.com/@KalidasVijayBhak)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
