Ok so I'm trying to make a program that takes a number and then goes through random numbers until it finds the one given. This is my code so far:
import random
number=input("Enter any number: ") #takes input from user
length=len(number) #gets the length of the number
zero=("0"xlength) #is supposed to set the number of zero's to the number length. eg if the length is "4" it returns "0000"
I don't know how to get a number to replicate itself a variable amount of times.