Here's the code
import os
while True:
print "Upisite ime datoteke koju zelite izbrisati"
izbrisi = os.remove(raw_input(""))
So I run this program in attempt to delete file but that file that doesn't exist so it just closes the program even its in while loop(when file does exist loop continiues). I tried with if statement but I couldn't make it work.