Question: using python 3: please only serious programer. here is an assignment. the answer of this assignment is down below with the NEW ASSIGNMENT I NEED
using python 3: please only serious programer. here is an assignment. the answer of this assignment is down below with the NEW ASSIGNMENT I NEED TO DO.. Thanks and i always rate my answer.

The set of musical notes is A, A#/Bb, B, C, C#/Db, D, D#/Eb, E, F, F#/Gb, G, G#/Ab. All notes start with a letter and may be followed by either # (sharp) or b (flat). A# and Bb are two names for the same note. The distance between two consecutive notes is a half-step. A sequence of 12 half-steps is called an octave. As you can see in the picture, if you move a full octave, you will return to the same note but at a higher or lower pitch.
A chromatic scale includes all the notes in an octave, either with sharps or flats but not both. So A A# B C C# D D# E F F# G G# is a sharp chromatic scale and A Bb B C Db D Eb E F Gb G Ab is a flat chromatic scale.
A piece of music is written in a specific key (a set of notes in a scale). However, a musician may wish totranspose the piece to a different key by uniformly raising or lowering its notes. This is done to either change its pitch or to convert to a set of notes that is more easily played. As an example, the sequence C D E could be transposed down 3 half-steps to become A B C# or A B Db. Similarly, it could be transposed up by 1 half-step to become C# D# F or Db Eb F.
A chord is a group of notes played together. Its lowest note is called its root. The name of a chord is derived from its root note, for example, F#.
The purpose of this assignment is to write a program that will take a set of chords, allow the user to indicate how many half-steps to transpose and display the resulting chords.
Divide the program into three functions:
main
Declare a string that that represents a set of chords (just the roots at this point)
Get input for the number of half-steps
Display the the transposed chords
a function with one parameter, a string of chords.
Return a list of chords from the given string. (In this assignment, the function is only one or two lines, but will be expanded in the future.)
a transpose function with two parameters, a string of chords, and the number of half-steps.
Determine whether the original chords use either a sharp or flat scale and make the corresponding chromatic scale.
Construct the set of transposed chords.
Return a string of transposed chords.
Use string and list methods and operations in your solution.
Examples: transposing "Eb D C F Bb G" 1 half-step down (-1) should produce the string, "D Db B E A Gb"; transposing "D# D C F A# G" 11 half-steps up (+11) should produce the string, "D C# B E A F#"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
HERE IS MY CODE
def main(): chords = 'Eb D C F Bb G' halfsteps = int(input('enter half steps:')) print(transpose(chords, halfsteps)) def makechordlist(s): return s.split() def transpose(chrdstr, halfsteps): if '#' in chrdstr: scale = 'A A# B C# D D# E F# G G# '.split() else: scale = 'A Bb B C Db D Eb E F Gb G Ab'.split() chrlist = makechordlist(chrdstr) tchords = [] for c in chrlist: i = (scale.index(c) + halfsteps)%12 tchords.append(scale[i]) return ' '.join(tchords) if __name__=='__main__': main()
HERE IS WHAT IS NEED TO BE DONE:
Modify your program from assignment 4. Currently your chords consist only of the root. However, following the root there may be additional characters. For example, we could have a D chord or D7, Dm, Dm7, Dsus2, Dmaj7, and many others. the characters after the root (in this case D) describe different variations on the chord.
Edit your function that makes the string of chords into a list of chords:
After you make the list (of strings), make a list of tuples. Each of the tuples will consist of two parts: the root of the chord and the variation of the chord. For example, "D" becomes ("D", ""), "Dsus2" becomes ("D", "sus2"), "F#" becomes ("F#", ""), "F#m" becomes ("F#", "m")
Notice that the root is either one or two characters. The variation of the chord is zero or more characters.
Edit your function that transposes:
When you iterate over the list of chord tuples, transpose only the root of the chord. The rest of the chord (its variation) is not affected. For example, if transposing +3 half-steps, ("F#", "m") would result in the chord "Am" and ("C", "") would result in the chord "D#".
If the original string in the main function is "Eb F7 Bb7 Eb Gm Ab Gm Fm Eb" and we transpose -1 half steps, the final result is "D E7 A7 D Gbm G Gbm Em D"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
