Created
September 25, 2019 14:27
-
-
Save goyalrohit/41763bf2c6a56ef5b91509ef68cbfd14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Declaring list which contains both string and integer elements | |
listStrInt = ['List', 'to', 'String', 2, 0, 1, 9] | |
# convert list to string using join and map functions | |
listToStr = ' '.join(map(str, listStrInt)) | |
print(listToStr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment