88.9k views
2 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 Hcalves
by
6.5k points

1 Answer

3 votes

Answer:

prefixe = "BCFHMPRSVT"

uffix = "at"

for p in prefixe:

if p == "T":

print(p + "hat")

else:

print(p + uffix)

User BryanWheelock
by
6.6k points