Hey guys,
I am pretty new on the programming scene. I have a question for you Python gurus. Why wont this:
prefixes = "JKLMNOPQ"
suffix = "ack"
for letter in prefixes:
if letter=="O"or"Q":
print letter + "u"+suffix
else:
print letter + suffix
give me this:
Jack
Kack
Lack
Mack
Nack
Ouack
Pack
Quack
Thanks.
I am pretty new on the programming scene. I have a question for you Python gurus. Why wont this:
prefixes = "JKLMNOPQ"
suffix = "ack"
for letter in prefixes:
if letter=="O"or"Q":
print letter + "u"+suffix
else:
print letter + suffix
give me this:
Jack
Kack
Lack
Mack
Nack
Ouack
Pack
Quack
Thanks.