This problem is in Contest(s) below:
Contest 5079:AK郦老师 Python入门组 第4课 课堂练习
Contest 5080:AK郦老师 Python入门组 第4课 家庭作业