
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Python please:
Given the input file input1.csv write a
The contents of the input1.csv are: hello,cat,man,hey,dog,boy,Hello,man,cat,woman,dog,Cat,hey,boy
Example: If the input is
input1.csv
the output is:
['Cat', 'Hello', 'boy', 'boy', 'cat', 'cat', 'dog', 'dog', 'hello', 'hey', 'hey', 'man', 'man', 'woman']
Note: There is a newline at the end of the output.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- In python code: Write a function to convert the Roman Numeral list to Hexidecimal. DCXXXVIIDCCXXXIIICMLXXXIIICDLXXXVIICCDLXXVIIIDCLXCMXVIDCCXXXCDXCIXCDLXXIIIDCCXLIIDCCLVIICCCXXXVICXXXIXCCCXXCCLXXVIIICMXXVIICCCIXDCCXXIXCDXCLXXIVCCXXXICCXXIIDCLXXXCCCLXXVIICDLIXCCXXIICCLVDXCIVDXXXIIICCLXIIIDCCCXDCCLXXIVDCCXXIVDCXXIICDXXCCCLXVDXCCLXXIICLXXXIXDCXXIXCMIDCXCVXXVIICCCLIVDCCXLVICMXLIIDCLXIVDCCCMLXXXIVCMLXIXCDLXXVIIICCLXVCCCLXXCCCLXXIICMXXIICCVIIICLXXVIIXCIXDXXXIICDXXXVDCCCLIXCDXCIIDLVDCCCXLVIICXXXVICDLXIVDVIIICCXCVIIIDCCXIXDCCCXXXVDCCCXICDVIICCCXCIXIDLXXCCLXIXCCCXIIDCCCXXVIIIDCCCIVCCCLXVCLXXXVIIDXVDXCIICMXLIVDCCXVIDLXCDLXXIXDCCCXCIIDCXLVICLXIDXCVIIICLXXDCCLXXVDXCIIDLXXVIarrow_forwardPython programming only NEED HELParrow_forwardPlease do fastarrow_forward
- The program will take in a year as an input from the user and output the popular dance and popular slang from that decade. Years, slang, and dances are stored in parallel lists in the starter code. The decade 1920 is located at index 0 and accompanies the 1920’s slang and dance also located at index 0, the decade 1930 is located at index 1 and accompanies the 1930’s slang and dance also located at index 1, etc. Sample Input/Output: >> Year: 1934 In the 1930's, The Jitterbug was the hip dance craze! >> Year: 1989 In the 1980's, The Moonwalk was the gnarly dance craze! Assume the user enters a year between 1920 and 2022, inclusive. To find the decade, round the year down to the nearest decade.arrow_forwardin PYTHON Write a function that accepts a list as an argument and calculates the sum of each elementof the list.arrow_forwardIm Python pleasearrow_forward
- the volume of traded Apple stocks during February and March 2022. The dates are in ascending order with their respective trade volumes.Input:Write a Python program that reads the data of the dates and stock volumesinto two separate lists.Output:The program must display the dates having the maximum and minimumtrading volume of each month. In addition, the program must display the whole trade volume, average trade volume for each month and shows the month that Apple has a higher trading volume.Sample Output:___________ has the maximum trade volume of ______________ in February.___________ has the minimum trade volume of ______________ in February.___________ has the maximum trade volume of _____________ in March.___________ has the minimum trade volume of ______________in March.The whole trade volume of these two months is ______________.The average trade volume of February is ______________.The average trade volume of March is ______________.AAPL has higher trading volume in…arrow_forwardPython programming only NEED HELP PLEASEarrow_forwardWrite a function that accepts two arguments, a list and a number n. The list contains numbers. The function return a list of all the numbers from the input list that are greater than number n. greater_than_n(list, n)arrow_forward
- python LAB: Subtracting list elements from max When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be done by normalizing to values between 0 and 1, or throwing away outliers. Write a program that adjusts a list of values by subtracting each value from the maximum value in the list. The input begins with an integer indicating the number of integers that follow.arrow_forwardInteger num_reading is read from input, representing the number of integers to be read next. Read the remaining integers from input and insert each integer at the front of reading_list at position 0.arrow_forwardPut the following code in a main.py file and a module.py file. Define the names sort, list_max and sum_of_list after putting the code into a main file and a module file #predefined modules import random import math #function to sort the list in ascending order def sort(x): #predefined function sort() x.sort() #print the sorted list print("\nSorted list is: ",str(x)) #function to find the sum of list elements def sum_of_list(x): #predefined function sum() Sum=sum(x) #return the sum of list elements return Sum #function to list the maximum from the list def list_max(x): #predefined function max() maximum=max(x) #return maximum return maximum #function to test the above three function def main(): #set a flag variable flag=True #create a list list1=list() #initialize the list element by using randrange() predefined function of random module list1=[random.randrange(1, 50, 1) for i in range(0,7)] #print the…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- 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

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education