Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vinniec
vinniec / genword.py
Created September 17, 2019 23:32
genword
from random import randint, choice, choices
import json, jsonpickle
alfabeto = {chr(i) for i in range(97, 123)}
vocali = {'a', 'e', 'i', 'o', 'u', 'y', 'j'}
consonanti = alfabeto - vocali
cr_nin = " àùéòìèó"
with open("./caratteri.json", 'r') as f:
caratteri = json.loads(f.read())