I also don't think you need two inputs. Something like this should suffice:
number = input()
if len(number) == 10 and (number == '7' or number == '8' or number == '9'):
Unless you need user to keep entering input, then you use a while loop.
Mr.CODER Actually I want to input a number every time in for loop and in for loop int(input()) means it will runs how many times it depends upon the input number and for every time it will ask you a 10 digit number. Do you know python or not
Mansi 👑 sorry i didnt saw that input the second input which means how many time the input should run ,
In hurry just wrote one input ...
Sorry for wasting your time ...
By the way i am beginner and learning