This problem is in Contest(s) below:
Contest 5315:AK郦老师 Python入门组 第12课 课堂练习
Contest 5322:12-2基础班