3 ms·A real amateur would have figured out how to write everything in a single function.by elboru 8y agoA real amateur would have figured out how to write everything in a single function.