class Solution(object):
    def reverseWords(self, s):
        """
        :type s: str
        :rtype: str
        """
        
        temp = s.split(' ')
        
        output = [word[::-1] for word in temp]
        
        return " ".join(output)


#https://leetcode.com/problems/reverse-words-in-a-string-iii/
427e30e1514ba70b64ccc564a6f0c1ed3db34b4c
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def reverseWords(self, s):
        """
        :type s: str
        :rtype: str
        """
        temp = s.split(' ')
        output = [word[::-1] for word in temp]
        return ' '.join(output)

class Solution(object):
    def reverseWords(self, s):
        """
        :type s: str
        :rtype: str
        """
        
        temp = s.split(' ')
        
        output = [word[::-1] for word in temp]
        
        return " ".join(output)


#https://leetcode.com/problems/reverse-words-in-a-string-iii/