Skip to content

Commit ab50b84

Browse files
authored
Merge pull request #460 from skyunna/patch-3
Update file-directory-path.md
2 parents 6458c56 + fd04407 commit ab50b84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cheatsheet/file-directory-path.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,9 @@ If there is no eggs folder, then `move()` will rename bacon.txt to a file named
498498
>>> for folder_name, subfolders, filenames in os.walk('C:\\delicious'):
499499
... print(f'The current folder is {folder_name}')
500500
... for subfolder in subfolders:
501-
... print('SUBFOLDER OF {folder_name}: {subfolder}')
501+
... print(f'SUBFOLDER OF {folder_name}: {subfolder}')
502502
... for filename in filenames:
503-
... print('FILE INSIDE {folder_name}: filename{filename}')
503+
... print(f'FILE INSIDE {folder_name}: {filename}')
504504
... print('')
505505
...
506506
# The current folder is C:\delicious

0 commit comments

Comments
 (0)