Skip to content

Commit acb150a

Browse files
committed
Fixes fstring format in os.walk example
REF: Issue 336
1 parent d135e1a commit acb150a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/modules/os-module.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ You can get a relative path from a starting path to another path.
217217
>>> for folder_name, subfolders, filenames in os.walk('C:\\delicious'):
218218
... print(f'The current folder is {folder_name}')
219219
... for subfolder in subfolders:
220-
... print('SUBFOLDER OF {folder_name}: {subfolder}')
220+
... print(f'SUBFOLDER OF {folder_name}: {subfolder}')
221221
... for filename in filenames:
222-
... print('FILE INSIDE {folder_name}: filename{filename}')
222+
... print(f'FILE INSIDE {folder_name}: filename{filename}')
223223
... print('')
224224
...
225225
# The current folder is C:\delicious

0 commit comments

Comments
 (0)