fork download
  1. s=str(input())
  2. s=s.strip()
  3. x=s.split()
  4. x=[i.lower() for i in x]
  5. x=[i.capitalize() for i in x]
  6. y=" ".join(x)
  7. print(y)
Success #stdin #stdout 0.03s 9736KB
stdin
hOW  ARe yoU
stdout
How Are You