Hello, my problem is that I do not know how to do so that when reading the file the values enter the input as an option, the file.txt I put it in the same folder of the program for now I can read files but I can not do that their content are input values.
def leer():
archivo =open("leer.txt","r")
comando=archivo.readline()
while comando !="":
print comando
comando=archivo.readline()
archivo.close()
iniciar=0
while True:
leer()
comando = raw_input("Escriba help o introduzca una acción: ")
comando = comando.lower()
if(comando=="help"):
print "Hola mundo"
elif(comando=="Genero"):
print "Dewey hola"
elif(comando=="comandos"):
print "comandos hola"
else:
print "Comando no valido"