How do I separate a sentence after print?

18 views Asked by At

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

1

There are 1 answers

1
Mongos Cingko Takos On

this should do it:

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

I hope your having fun learning python :)