332,973 views
32 votes
32 votes
Prefixe = "BCFHMPRSVT"

uffix = "at"
for p in prefixe:
print(p uffix)
Since Tat i not a word, the program need to be changed to print That intead of Tat. Add a conditional tatement to make the program print That intead of Tat

User Jim Brissom
by
3.1k points

1 Answer

11 votes
11 votes

Answer:

prefixe = "BCFHMPRSVT"

uffix = "at"

for p in prefixe:

if p == "T":

print(p + "hat")

else:

print(p + uffix)

User EHerman
by
2.9k points