I want to create a function that can see if an input contains an int in some way.
For example, if the input was 17, 7, 70, 87 etc. It could check if a seven is present. Like the number 17 contains a 7.
Code:
UserInput = int(input("Input a number and check if it contains 7"))
if (insert statement to check for 7):
print("there is a seven in your number")
Thank you in advance.