The following code can be used: phone_number = input("Please enter the phone number:") if '4' in phone_number: print("The phone number contains 4") else: print("The phone number does not contain 4")
Use Python to write a code to judge whether there is 4 in the mobile phone number
Guess you like
Origin blog.csdn.net/weixin_42590539/article/details/129594568
Recommended
Ranking