6231/combine-list-items-to-a-string
>>> stmt = ['this','is','a','statement'] >>> ' '.join(sentence) 'this is a sentence'
Hello @kartik, Use join: >>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence' Hope it ...READ MORE
You can use the function text.split() This should be ...READ MORE
suppose you have a string with a ...READ MORE
This can be done using list comprehension ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
This is easy. Just use the list() ...READ MORE
list.(dictionary.keys()) READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.