Oct-03-2021, 12:29 PM
(This post was last modified: Oct-03-2021, 01:14 PM by deanhystad.)
Why the parenthesis in the first two lines? They do nothing.
Slices work just like the for loop. They start at the start and end just before the end. To slice all the way to the end don't specify an end.
Slices work just like the for loop. They start at the start and end just before the end. To slice all the way to the end don't specify an end.
dwg_name = dst[-7:]Same goes for slicing from the start.
dwg_name = dst[:7]