2 Answers
+ 2
I assume this is inside "python for beginners" course.
You can review my explained code and see how I did it, and you can also see an alternative of how to do this:
https://code.sololearn.com/cZ6xlypwi5Fq/?ref=app
+ 7
Lamron ,
it is not seen as a helpful behavior when we are going to post a ready-made code, as long as the op has not shown his attempt here.
> it is helpful to give hints and tips, so that the op has a chance to find a solution by himself.