i ask for a input, if that input was in a line of my txt file, delete just that line
w = input("Enter STnumber: ")
with open("student.txt ", "r") as f:
lines = f.readlines()
with open('student.txt','w') as f:
for line in lines:
if w in line :
# (i cant undrstand here)
these will clear all of my txt file actually its a name , lastname and a number in the txt file, like this jon sina 1234
if w = 1234, delete just the line with a number 1234