i usually try out my codes first then i paste the codes to run in a py file. Here is the code.
front end of code is fine, this part is where i am confused. so