Oct-21-2018, 01:47 PM
>>> left, right = 'x[1][2]=5'.split('][') >>> left, right = left[:-1] + right[0], left[-1] + right[1:] >>> new_line = ']['.join((left, right)) >>> new_line 'x[2][1]=5' >>>
flipping the for loop in file
|
|
Messages In This Thread |
flipping the for loop in file - by juniorcoder - Oct-21-2018, 09:41 AM
RE: flipping the for loop in file - by ichabod801 - Oct-21-2018, 01:22 PM
RE: flipping the for loop in file - by wavic - Oct-21-2018, 01:47 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Flipping matrices problem | Qmohankumar0017 | 10 | 9,210 |
Feb-20-2019, 06:47 PM Last Post: buran |