This file contains hidden or 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
from bs4 import BeautifulSoup | |
from csv import reader, writer | |
from halo import Halo | |
from os import name, remove, system | |
from pyfiglet import figlet_format | |
from random import choice | |
from termcolor import colored | |
from time import sleep | |
import requests |
This file contains hidden or 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
# I was helping my kid with his homework the other day. | |
# He's shown an interest in programming, so we wrote this together. | |
# Be sure to run this with python3, not python 2. | |
# 1. Get a list of numbers through user input, preventing non-integers and 0s as inputs | |
# 2. Create sets from each number factored out to the Nth, based on the largest number in the list | |
# 3. Get the intersection of the sets using and a little *args magic | |
# 4. Use min() on that intersection to determine the LCM. | |
def create_sets(nums): |