Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--doble de x * doble de y | |
dobleUs x y = x * 2 + y * 2 | |
--con dos Funciones | |
doble x = x + x | |
dobleUs2 x y = doble x + doble y | |
--triple ? | |
triple x = doble x + x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
promedio :: [Double] -> Double | |
promedio [] = 0 | |
promedio bs= sum bs / fromIntegral(length bs) | |
factorial:: Integer -> Integer | |
factorial 0 = 1 | |
factorial n = product[1..n] | |
--comb | |
comb n k = (factorial(n)) `div` ((factorial(k)) * factorial(n-k)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Antes de usar instalen clint abran el CMD y escriban pip intall clint | |
from random import randint as r | |
import time | |
from clint.textui import colored | |
def randomizer(): | |
rand = r(1,255) | |
return chr(rand) | |
def espacer(): | |
rand = r(1,2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs4 | |
from urllib.request import urlopen as uReq | |
from bs4 import BeautifulSoup as soup | |
import csv | |
myurl = "https://www.lider.cl/supermercado/category/Despensa/Pastas/Fideos-Largos/_/N-673e4a" | |
uClient = uReq(myurl) | |
page_html = uClient.read() | |
nombres = [] | |
marcas = [] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer