https://leetcode.com/problems/circular-sentence/


Success


```python
class Solution:
    def isCircularSentence(self, sentence: str) -> bool:
        #2023/3/22 8:33
        words_list = sentence.strip().split(" ")
        for index, word in enumerate(words_list):
            if index != len(words_list) - 1:
                word = word
                next_word = words_list[index+1]
                if (word[-1] != next_word[0]):
                    return False
        if len(words_list) >= 2:
            if (words_list[0][0] == words_list[-1][-1]):
                return True
            else:
                return False
        elif len(words_list) == 1:
            if words_list[0][0] == words_list[0][-1]:
                return True
            else:
                return False
        else:
            return False
        #2023/3/22 8:38
```
