Change strings to f-strings in Os module 'os.walk' example
rjm001 opened this issue · 1 comments
rjm001 commented
Small issue in module on Os. For the example in os.walk, they should be f strings. That is replace the existing:
>>> import os
>>>
>>> for folder_name, subfolders, filenames in os.walk('C:\\delicious'):
... print(f'The current folder is {folder_name}')
... for subfolder in subfolders:
... print('SUBFOLDER OF {folder_name}: {subfolder}')
... for filename in filenames:
... print('FILE INSIDE {folder_name}: filename{filename}')
... print('')
With
>>> import os
>>>
>>> for folder_name, subfolders, filenames in os.walk('C:\\delicious'):
... print(f'The current folder is {folder_name}')
... for subfolder in subfolders:
... print(f'SUBFOLDER OF {folder_name}: {subfolder}')
... for filename in filenames:
... print(f'FILE INSIDE {folder_name}: filename{filename}')
... print('')
LairdStreak commented
@ here WIP