

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we create python string from list?
Python has an in-built join() function that returns a string by joining elements in a sequence object by inserting separator between elements. If we need a string without any separator, we initialize it with null string
>>> lst=['h','e','l','l','o'] >>> str='' >>> str.join(lst) 'hello'
- Related Questions & Answers
- How do we create multiline comments in Python?
- Create a tuple from string and list in Python
- How do we create a string from the contents of a file in java?
- How do we get size of a list in Python?
- How do you create a list from a set in Java?
- How do we get the size of a list in Python?
- How do we grep a particular keyword from Python tuple?
- How do we compare String in Java
- Python – Create dictionary from the list
- How do we convert a string to a set in Python?
- How can we return a list from a Python function?
- How do we create underlined text in HTML?
- How do we create preformatted text in HTML?
- How do we create a structure in C#?
- How to create a tuple from a string and a list of strings in Python?
Advertisements