Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Buscador de palabra,cualquier duda,mi fb : https://www.facebook.com/TheNinjaBlack2
- import re
- tipo_de_archivo = input("¿Que archivo deseas abrir?")
- tipo_de_palabra = input("¿Que palabra deseas buscar?")
- abrir = open(tipo_de_archivo)
- abrir2 = abrir.readlines()
- lul = 0
- for lol in abrir2:
- ejemplos = lol.split(' ')
- for lel in ejemplos:
- if lel == tipo_de_palabra:
- lul = lul + 1
- print ("se encuentra la palabra")
Advertisement
Add Comment
Please, Sign In to add comment