defformat_words(words):sentence=''ifwords:words=[wordforwordinwordsifword]forindex,wordinenumerate(words):ifindex==0:sentence+=wordelifindex==len(words)-1:sentence+=" and "+wordelse:sentence+=", "+wordreturnsentence
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: Daily Coding Puzzles - Nov 11th - Nov 16th
Replies for: Wednesday - Format words into a sentence (6 KYU) Complete the method so that it formats the words into a single comma separated value. The last w...
For further actions, you may consider blocking this person and/or reporting abuse