This problem is in Contest(s) below:
Contest 1034:Python-第2章-程序设计入门
Contest 1071:Python初中级-APTIV-A-顺序-分支
Contest 1061:2023-WE 百题大战01:入门,顺序结构(整型)