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
CREATE TABLE "City" ( | |
id integer NOT NULL, | |
name text, | |
region_id integer | |
); | |
INSERT INTO "City" (id, name, region_id) VALUES (15101, 'Arica', 15); | |
INSERT INTO "City" (id, name, region_id) VALUES (15102, 'Camarones', 15); | |
INSERT INTO "City" (id, name, region_id) VALUES (15201, 'Putre', 15); | |
INSERT INTO "City" (id, name, region_id) VALUES (15202, 'General Lagos', 15); |
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 random | |
import copy | |
ancho = int(input("ancho:")) | |
alto = int(input("alto:")) | |
probabilidad = float(input("p:")) | |
def generarCampo(ancho, alto): | |
campo = [] | |
for y in range(0, alto): |