my for loop is looping through a list and i want tomake it so that if a value a user enters a value it its is not found in the list iwant to get another value from the user to check for in the list
import datetime as date
x = date.datetime.now()
D = []
d = int((x.strftime("%d")))
M = (x.strftime("%B"))
for i in range(1,8):
d = d + 1D.append(d)
print (M+", "+str(d))
z = str(input("enter date for booking"))
for i in D :
if i == z:
break