Here we help people with their Python challenges or questions, not write code or do homeworks.
You are welcome to post your coding attempt to solve this problem (in Python code tags) and full error traceback (in error tags) if you get an error. If the result you get is not as desired, post expected and actual results too. Then we can point you in the right direction.
You are welcome to post your coding attempt to solve this problem (in Python code tags) and full error traceback (in error tags) if you get an error. If the result you get is not as desired, post expected and actual results too. Then we can point you in the right direction.