Python For Loop from How to think like a computer scientist
https://stackoverflow.com/questions/10602583/python-for-loop-from-how-to-think-like-a-computer-scientist
WebMay 15, 2012 · For the sake of learning, what I attempted was: prefix="JKLMNOPQ". suffix="ack". for letter in prefix: if letter = "O" or "U": print letter + "u" + suffix. else: print letter + suffix. As most of you would notice at first sight, the syntax error committed is in using = instead of == in the if function call.
DA: 74 PA: 99 MOZ Rank: 7