Not sure if this is asked before but: How do you print "searching for x" where "x" is a random integer? I have my code below:
from random import randint
numbers = []
random = randint(1,50)
for i in range(0,10):
numbers.append(randint(1,50))
for j in range(len(numbers)):
print('searching for')
print(random)
print('in')
print(numbers)
break
And this is what happens but I want "searching for __ in [list]" on the same line. Is there a way to do it?
Thanks in advance!