
How can I make that this code could work using the four lists in a two dimensional array and get the same resultas it does when you run it? could you please help me? it has to be in Python.
import random
aAdverbs = ['appropriately', 'assertively', 'authoritatively', 'collaboratively', 'compellingly', 'competently',
'completely', 'continually', 'conveniently', 'credibly', 'distinctively', 'dramatically']
aAdjectives = ['24/7', '24/365', 'accurate', 'adaptive', 'alternative', 'an expanded array of', 'B2B', 'B2C', 'backend',
'backward-compatible', 'best-of-breed', 'bleeding-edge']
aVerbs = ['actualize', 'administrate', 'aggregate', 'architect', 'benchmark', 'brand', 'build', 'cloudify',
'communicate', 'conceptualize', 'coordinate', 'create', 'cultivate', 'customize']
aNouns = ['action items', 'alignments', 'applications', 'architectures', 'bandwidth', 'benefits', 'best practices',
'catalysts for change', 'channels', 'clouds', 'collaboration and idea-sharing', 'ideas']
while True:
usrinput= input('Genrate random BS? (Y or N): ').lower()
if usrinput =='y':
print("______________________________________________")
print(f'\n{random.choice(aAdverbs)} {random.choice(aVerbs)} {random.choice(aAdjectives)} {random.choice(aNouns)}\n')
print("______________________________________________")
else:
break

Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 3 images

- Please help solve the python problem, thank youarrow_forwardCompare and contrast the array and arrayList. Give at least one example that describe when to use arrayList compared to an array.arrow_forwarddo the code in python: Consider the following code. What is the code trying to do? What arethe mistakes that you should fix to get the code to work? Make sure to typeout the corrected version to make sure that the code works.list = [1, -2, 3, -4, -5, 6]y = []slope = 5ini_val = 2count = 1while count < 6:y_temp = slope * list[count] + ini_valif y_temp > 0:y.append(y_temp)else:y.append(0)count =+ 1print(y)arrow_forward
- Sort the ArrayList of the student objects into ascending order of the students’ numbers (IDs),and output the sorted array - implement an appropriate sorting algorithm for this, and explainwhy such algorithm is selected (in internal and external documentation). how do I come up with an algorithm to sort the array in an ascending order?arrow_forwardIn writing a general-purpose sort method in Java, the sort method needs to compareobjects. There are two ways to give the sort method the code to compare objects,implementing the interfaces Comparable and Comparator respectively. Extend Article class toimplement Comparable interface so that the default sorting of the Articles is by its volumearrow_forwardPlease help with the following in JAVA: Question 1 Could you minimize the total number of operations done for the previous problem? Previous Question > Given an integer list nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements. Note that you must do this in-place without making a copy of the array. Code public static void main(String[] args) {ArrayList<Integer> mylist = new ArrayList<Integer>();Scanner sc = new Scanner(System.in);System.out.println("Enter the list with last a add : ");while (sc.hasNextInt()) {//TAKING INPUT UNTILL THE USER ENTERS ANY CHARACTER OTHER THAN INTint i = sc.nextInt();mylist.add(i);}int count=0;for(int i=0;i<mylist.size();i++){if(mylist.get(i)==0){count++; //COUNTING NUMBER OF ZEROES}}while(count!=0){for(int i=0;i<mylist.size()-1;i++){if(mylist.get(i)==0){Collections.swap(mylist, i, i+1);}}count--;}for(int i=0;i<mylist.size();i++){System.out.print(mylist.get(i)+ " "); //PRINTING THE…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





