Use Python to write a code to judge whether there is 4 in the mobile phone number

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")

Guess you like

Origin blog.csdn.net/weixin_42590539/article/details/129594568