this project has almost 0 optimisation and i am aware this can be done in a much better way
for the mate: i recommend using this interpreter in the link below, just copy and paste the code in then run https://www.programiz.com/python-programming/online-compiler/