ebosetalee / 20-days-challenge

#20dayschallenge on python
6 stars 0 forks source link

1 - Words in reverse #3

Closed jirevwe closed 4 years ago

jirevwe commented 4 years ago

Generate 10 random words. Print each out in reverse then print out the whole sentence in reverse.

Hints

  1. Generate a random sentence, and output the sentence in reverse. E.g. I am a boy becomes yob a ma I.
  2. Generate a random sentence, and output the reverse of each word of the sentence. E.g. I am a boy becomes I ma a yob.