Posts

Showing posts from July, 2025

Missing the Big Sweat Globs on account of focus on the Small Stuff in them

Image
  The two previous posts (here) and (here) did not go as planned. Too much caught in the details (in the weeds) and then no time or energy for pointing out the big picture --or more correctly answering the subsuming question, which is: Why would I want to skip some of the tutorial exercises in my "Learn or Review List Methods" Python program in the first place? By the way, it worked. I converted the first tutorial into a function and put in a conditional return based on one of the items in my skip_diz list. Here is part of the code: TO BE CONTINUED  def choice_of_die_outcomes(method_ID_numb, method_name, verb, skip_diz_list_a): #-- last arg is a skip control if skip_diz_list_a[method_ID_numb] == 1: print(f'method number {method_ID_numb} has been skipped\n') return None #--skip this tutorial if skip position for tutorial 01 is set to 1 face_imgs_row1 = ['🤬', '🧐', '🤓🤓', '😲...

Sweating the Small Stuff (Part 2)

Image
 This is a follow up on the previous post ( here ). The obvious next step after getting the initial Python code to work is to commit the working code to a Git repository (done) and then create some generalized functions. So here is the updated code for generating index templates: def gen_index_templ4(numb_indices): skip_diz_template_create = range(numb_indices + 1) skip_diz_template = list(skip_diz_template_create) for i in skip_diz_template: print(format(i ,"02d"), end = ' ') print(f'\nTemplate printed out above for {numb_indices} plus one indices\n') gen_index_templ4(6) gen_index_templ4(10) ... and here are the outputs for the above two function calls: 00 01 02 03 04 05 06 Template printed out above for 6 plus one indices 00 01 02 03 04 05 06 07 08 09 10 Template printed out above for 10 plus one indices Next here is the code for the list pre-fill function and two test calls to it def gen_preFilled_list4(numb_indices, fil...