flâneur — a map of the web's best reading

Untitled1.ipynb - Colab

colab.research.google.com · 4 words · saved by 1 readers

Untitled1.ipynb_ star File Edit View Insert Runtime Tools Help comment Comment people Share settings format_list_bulleted search vpn_key folder code terminal Code Text Gemini expand_less 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 import numpy as np import matplotlib.pyplot as plt # Step 1: Ask for traits to be rated def get_traits(): traits = [] while True: trait = input("Enter a trait you'd like to rate (or press Enter to finish): ") if trait == "": break traits.append(trait) return traits # Step 2: Create a database for storing the traits def create_database(num_people, traits): ratings = {} for trait in traits: ratings[trait] = [] print(f"\nPlease rate all people for the trait: {trait}") for i in range(num_people): while True:

Google Colab Sign in

Explore this link on the map →

related reading