3 Matching Annotations
  1. Oct 2025
    1. To find right triangles using Pythagorean Theorem: x_list = range(1,100) y_list = range(1,100) z_list = range(1,100) for x in x_list: for y in y_list: for z in z_list: if ((x**2) + (y**2) == (z**2)): print(f'This is a right triangle: ' f'x = {x}, y = {y}, and z = {z}.') else: continue

    2. To get list of combos: ``` letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] numbers = [1, 2, 3, 4, 5,6 ,7, 8, 9, 0] combinations_letters = itertools.combinations(letters, 3) combinations_numbers = itertools.combinations(numbers, 3) combined_results = itertools.product(combinations_letters, combinations_numbers) # 6 character license

      combinations_numbers_2 = itertools.combinations(numbers, 4) combined_results_2 = itertools.product(combinations_letters, combinations_numbers_2) # 7 character license for combo in combined_results: print(combo)

      for combo in combined_results_2: print(combo) ``` The number of estimated license plates with the format LLLNNNN is ((26)^3)((10)^4)), which is 175,760,000. For LLLNNN, it is ((26)^3)((10)^4)), which 17,576,000. The total number of combos is 193,336,000.

  2. Sep 2025