This problem is in Contest(s) below:
Contest 1058:Python-第5章-组合数据类型-2024
Contest 1054:2024-WE 百题大战04:循环初步
Contest 1056:Python-第3章-流程控制-2024