Feedback on Basic Algorithm Scripting

Hi there,

I just finished “Mutations” in the Basic Algorithm Scripting and would love some feedback. My solution feels very un-elegant :unamused:

What can I improve?

Link to profile

Thanks so much!