Write a Python function to get any string/sentence and returns the most repeated word.
# converting the string s to a list
L = s.split()
# initialising the most repeated words
mostRepeated = L
for word in L:
if L.count(word) > L.count(mostRepeated):
mostRepeated = word
# testing the algorithm
s = "Python is object oriented programming language. Python is also also used for data sciences. Python is open source"
print(most_repeated(s)) # the out put is: Python