how can I print string from the input without the repetition of words?

前端 未结 0 1652
渐次进展
渐次进展 2020-11-29 14:48

while True: my_str = input("Enter a string: ") if my_str == \'\': print ("Goodbye!") break words = [word.lower() for word in my_str.split()]



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题