class Solution(object):
	def reverseWords(self, s):
		"""
		:type s: str
		:rtype: str
		"""
		words = s.split()
		result = []
		for w in words:
			# start from the end towards the first taking each element. so reverse a
			result.append(w[::-1])
		return " ".join(result)

# list comprehension
# return " ".join([i[::-1] for i in s.split()])



f503f40cf111b2a925b00922fe252b9fa654c13b
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def reverseWords(self, s):
        """
		:type s: str
		:rtype: str
		"""
        words = s.split()
        result = []
        for w in words:
            result.append(w[::-1])
        return ' '.join(result)

class Solution(object):
	def reverseWords(self, s):
		"""
		:type s: str
		:rtype: str
		"""
		words = s.split()
		result = []
		for w in words:
			# start from the end towards the first taking each element. so reverse a
			result.append(w[::-1])
		return " ".join(result)

# list comprehension
# return " ".join([i[::-1] for i in s.split()])


