How do you make Python delete a specific line of text from a file?
For example,

delete_input = input ('> ')
file = open('blahblah.$','w')
#delete the variable delete_input
file.delete(delete_input from file)

Any form of help would be appreciated. Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.