Python Reverse Words in a String: Mixing iteration and read methods would lose data


  • 0
    N

    Runtime Error Message: Line 5: ValueError: Mixing iteration and read methods would lose data
    Last executed input: " "

    Line 5:self.sentence = raw_input("")


  • 0
    S

    It is unnecessary to read stdin in solution, LeetCode OJ will cover that. All you need is manipulating with the passed in parameters.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.