Please help me with my assignment I need to submit my homework today. I have two strings I need to separate in between the two strings. not concatenate it. Please show me the code as I need to add a third string with the code to separate it to apply for it
Please help me with my assignment I need to submit my homework today. I have two strings I need to separate in between the two strings. not concatenate it. Please show me the code as I need to add a third string with the code to separate it to apply for it.
prefixes = 'MDFVS'
suffix = 'an'
for letter in prefixes:
#Checking for letter
if letter in 'S':
print(letter + 'c' + suffix)
else:
print(letter+suffix)
while True:
line = input('>')
if line=='done':
break
print(line)
print('Done!')
the code above didn't work as it didn't print my second string
prefixes = 'KTBDPW'
suffix = 'en'
for letter in prefixes:
#Checking for letter
if letter in 'W':
print(letter+'h'+suffix)
else:
print(letter+suffix)

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









