Category : loops

These are three lists of python. List1 = [a,b,c] List2 = [1,2,3] List3 = [X,Y,Z] Is it possible to get Output like this ? Output : a 1 X (After delay of 10 sec) b 2 Y (After delay of 10 sec) c 3 Z I tried it with nested for loops but unable to ..

Read more

I have a text file (propertysummary_list.txt) with a list of url’s: https://atip.piercecountywa.gov/#/propertySummary/0420066001 https://atip.piercecountywa.gov/#/propertySummary/0320015000 https://atip.piercecountywa.gov/#/propertySummary/0420062184 https://atip.piercecountywa.gov/#/propertySummary/0320015000 https://atip.piercecountywa.gov/#/propertySummary/0320011014 https://atip.piercecountywa.gov/#/propertySummary/0420063052 I want to write a script that will open loop through this text file (propertysummary_list.txt) and pass each line (i.e. a single url) as a value to be used later in a selenium script. I have something like ..

Read more

code I am trying to remove cards with the same color and number from total cards but I am having trouble making conditions for my for loop total_Cards=[‘Ace_of_clubs’, ‘2_of_clubs’, ‘3_of_clubs’, ‘4_of_clubs’, ‘5_of_clubs’, ‘6_of_clubs’, ‘7_of_clubs’, ‘8_of_clubs’, ‘9_of_clubs’, ’10_of_clubs’, ‘King_of_clubs’, ‘Queen_of_clubs’, ‘Jack_of_clubs’, ‘Ace_of_diamonds’, ‘2_of_diamonds’, ‘3_of_diamonds’, ‘4_of_diamonds’, ‘5_of_diamonds’, ‘6_of_diamonds’, ‘7_of_diamonds’, ‘8_of_diamonds’, ‘9_of_diamonds’, ’10_of_diamonds’, ‘King_of_diamonds’, ‘Queen_of_diamonds’, ‘Jack_of_diamonds’, ‘Ace_of_spades’, ‘2_of_spades’, ..

Read more

I’m like to iterate over a list of received data from Digikey api any didn’t have much luck googling sins the function enumerate(reversed(part.standard_pricing)) just doesn’t work and you can’t reverse the part.standard_pricing for some reason Something like that is desiered: for b_idx in range(part.standard_pricing, -1, -1): print(f"Test at: {b_idx} , Q: {part.standard_pricing[b_idx].break_quantity}") if PCountQ >= ..

Read more