Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 456 Bytes

Words_to_sentence.md

File metadata and controls

40 lines (22 loc) · 456 Bytes

CodeWars Python Solutions


Words to sentence

Write function which will create a string from a list of strings, separated by space.

Example:

["hello", "world"] -> "hello world"

Given Code

def words_to_sentence(words):
    pass

Solution

def words_to_sentence(words):
    return " ".join(words)

See on CodeWars.com