Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fString Nested forLoop
#7
ok, maybe I'm looking at this wrong.
I'm sorry if this is so basic. I feel pretty dumb right now >:

I thought with the f-string I would only have this code:
rows = range(1, 10)
columns = range(1, 5)
wb.active.cell(row, col).value = f'row:{row}, column:{col}'
and this code is not used:

for row in rows:
  for col in columns:
    wb.active.cell(row, col).value = 'fString_forLoop'
thanks,
Phil
Reply


Messages In This Thread
fString Nested forLoop - by pcsailor - Oct-13-2018, 05:57 AM
RE: fString Nested forLoop - by buran - Oct-13-2018, 06:25 AM
RE: fString Nested forLoop - by pcsailor - Oct-13-2018, 08:09 AM
RE: fString Nested forLoop - by buran - Oct-13-2018, 08:50 AM
RE: fString Nested forLoop - by pcsailor - Oct-13-2018, 09:45 AM
RE: fString Nested forLoop - by volcano63 - Oct-13-2018, 09:51 AM
RE: fString Nested forLoop - by pcsailor - Oct-13-2018, 09:55 AM
RE: fString Nested forLoop - by volcano63 - Oct-13-2018, 12:10 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020