Sep-19-2018, 06:19 AM
Further question if I could,...
If I have this tuple:
how would I accomplish this?
If possible, could you point me in the direction using simple loops instead of f-strings? I'm still learning loops and I'm challenged with the older, simpler style right now.
I've been working on it and I'm stuck with this consistent result
I'm having trouble inserting the tuple element in between the quotations in this part of the code
Phil
If I have this tuple:
('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten')and I want to accomplish three things,
- list the tuple elements down a column starting with A1 and ending with A10,
- have the number-iteration in A1 to A10 replace the '#' placeholder in this code:
sheet['A#'].value = 'tuple-element'
- have the tuple element iterate through and replace the 'tuple-element' placeholder in this same code:
sheet['A#'].value = 'tuple-element'
how would I accomplish this?
If possible, could you point me in the direction using simple loops instead of f-strings? I'm still learning loops and I'm challenged with the older, simpler style right now.
I've been working on it and I'm stuck with this consistent result
{"sheet['A1'].value = ''": 'one', "sheet['A10'].value = ''": 'ten', etc.So I have the A1-A10 numbering working.
I'm having trouble inserting the tuple element in between the quotations in this part of the code
value = ''Thanks,
Phil