1

I am a beginner. This is my code with the outcome in bold where the words are joined together. Question is how do I separate them after print?

adjective = input("Enter an adjective: ")

noun = input("Enter a noun: ")

verb = input("Enter a verb phrase: ")

adverb = input("Enter an adverb phrase: ")

sentence = "The " + adjective + noun + verb + adverb

print(sentence)

The funnyfarmerate crabsat the dentist

Cindy Koh
  • 29
  • 2

1 Answers1

1

this should do it:

sentence = "The " +adjective +" " +noun +" " +verb +" " +adverb +"."
print(sentence)

I hope your having fun learning python :)