Need python programming help for simple problem
Budget: $10 – $30 AUD
I need help with the following into a plain text format
- Read the data in file artistsong.csv (Available below) as a list of dictionaries.
- Add a key '25playsormore' to each dictionary with a value 1 if the number of plays is 25 or greater. Otherwise, the value of the key '25playsormore' should be 0.
- Write the data into a new file called artistsong_update.csv (i.e., artist, track, plays, 25playsormore).
dictionaries:
Artist,Track,Plays
Dire Straits,Sultans of Swing,65
Pink Floyd,Comfortably Numb,23
The Smiths,The is a light that never goes out,15
Nick Cave & The Bad Seeds,The Ship Song,36
Dire Straits,Brothers in Arms,20
- Read the data in file artistsong.csv (Available below) as a list of dictionaries.
- Add a key '25playsormore' to each dictionary with a value 1 if the number of plays is 25 or greater. Otherwise, the value of the key '25playsormore' should be 0.
- Write the data into a new file called artistsong_update.csv (i.e., artist, track, plays, 25playsormore).
dictionaries:
Artist,Track,Plays
Dire Straits,Sultans of Swing,65
Pink Floyd,Comfortably Numb,23
The Smiths,The is a light that never goes out,15
Nick Cave & The Bad Seeds,The Ship Song,36
Dire Straits,Brothers in Arms,20