Login and get codingIn this Bite you complete
get_files
that receives adirname
andsize_in_kb
(note kb, not bytes).There are two things you need to code:
- Inspect/list the files in
dirname
,- Return files that are bigger or equal than
size_in_kb
(return alist
or turn the function into a generator).The
os
module is your friend here, but you also might want to check outglob
. Have fun and keep coding in Python!
147 out of 148 users completed this Bite.
Will you be Pythonista #148 to crack this Bite?
Resolution time: ~34 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 3.0 on a 1-10 difficulty scale.
» You can do it! 😌