(Solved) : Today Exactly Trump Accused Others Going Generate Fake News Finish Function Fakenews Headl Q42715068 . . .

python
Today you will do exactly what Trump has accused others of doing you are going to generate some fake news! You will finish of12. def fakeNews Headline(): 13 14 return 15 16 17 # PLEASE END YOUR WORK HERE 20- def maino: peoplelist - input().split(,)Today you will do exactly what Trump has accused others of doing you are going to generate some fake news! You will finish off the function fakeNews Headline that takes in three string lists and outputs a fake news headline You will use 3 string lists, containing people, verbs and nouns. From those arrays, you will generate something of the form Person verb noun. which has the ability to end up quite humorous (Almost as crazy as the real news over the past few years! Details Input • Input has been handed for you. The data will be read in to the lists (first people, then verbs and nouns lists). These lists will be provided to your function . Following the array details, the program reads in the indexes of the arrays to be used by your program Processing • Complete the fakeNews Headline function. Note that you have been given Python comments describing its expected parameters and return value much like in the sigament The function takes in three integers ip. V and n) indexes of the people. verbs and nouns lists, respectively. It then put together and returns the fake news headline made up of people[p] verbs(v) nounds(n) Output • Output from the main method has been taken care of for you Sample input/output: Program output Program input Donald Trump arrest Justin Trudeau, Donald Trump, Bob Saget eats, marries, tweets, adopts, smashes potato,dog,chihuahua, red car.pickle 113 12. def fakeNews Headline(): 13 14 return 15 16 17 # PLEASE END YOUR WORK HERE 20- def maino: peoplelist – input().split(“,”) verbslist – input().split(“.”) nounslist – input().split(“.”) peopleIndex, verbs Index, nouns Index – [int(x) for x in input().split() print( fakeNews Headline peoplelist, verbslist, nounslist, peopleIndex, verbsIndex, nouns Index)), return # Body of program maino Show transcribed image text Today you will do exactly what Trump has accused others of doing you are going to generate some fake news! You will finish off the function fakeNews Headline that takes in three string lists and outputs a fake news headline You will use 3 string lists, containing people, verbs and nouns. From those arrays, you will generate something of the form Person verb noun. which has the ability to end up quite humorous (Almost as crazy as the real news over the past few years! Details Input • Input has been handed for you. The data will be read in to the lists (first people, then verbs and nouns lists). These lists will be provided to your function . Following the array details, the program reads in the indexes of the arrays to be used by your program Processing • Complete the fakeNews Headline function. Note that you have been given Python comments describing its expected parameters and return value much like in the sigament The function takes in three integers ip. V and n) indexes of the people. verbs and nouns lists, respectively. It then put together and returns the fake news headline made up of people[p] verbs(v) nounds(n) Output • Output from the main method has been taken care of for you Sample input/output: Program output Program input Donald Trump arrest Justin Trudeau, Donald Trump, Bob Saget eats, marries, tweets, adopts, smashes potato,dog,chihuahua, red car.pickle 113
12. def fakeNews Headline(): 13 14 return 15 16 17 # PLEASE END YOUR WORK HERE 20- def maino: peoplelist – input().split(“,”) verbslist – input().split(“.”) nounslist – input().split(“.”) peopleIndex, verbs Index, nouns Index – [int(x) for x in input().split() print( fakeNews Headline peoplelist, verbslist, nounslist, peopleIndex, verbsIndex, nouns Index)), return # Body of program maino

Expert Answer


Answer to Today you will do exactly what Trump has accused others of doing you are going to generate some fake news! You will fini…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us