For this assignment, you will code three songs in EarSketch, each incorporating the following Python commands:

You must require and utilize input from a user using the EarSketch AP function readInput(). This should prompt users to select the genre they want to listen to, and once selected, should play one of your three songs that matches the genre chosen.
You must use some form of randomization in your songs, using the randint() function.
You must use a conditional statement in your songs, using an if, else, elif statement.
You must use both of the EarSketch functions fitMedia() and setEffect() for an effect in your script (such as a fade or distortion).
You must use string operations (concatenation or splicing) to create your own beat, using the EarSketch function makeBeat().
You must use for loops to add repetition to your code.
You must use at least one user-defined (custom) function to create musical sections for your songs.
In addition to the required coding components above, your program must also meet the following general requirements:

Each song must be at least 20 measures long.
Each song should have at least five tracks.
Each song should include different elements unique to a music genre (different beats, instruments, or sound clips that would allow a listener to tell songs apart from one another).
You will need to create a new script for your code in your EarSketch account, title it appropriately, and use sound clips from the EarSketch library or sounds you have recorded or uploaded on your own. Your final code will need to run without any errors, and play successfully in the digital audio workstation (DAW) when opened by your teacher.