How do i define a funcition in python that creates files?

I have to use files to save data about users and I thought that the easiest way to do this in a big programme was by defining a function. Is it alright to do this? Can someone help me?

5th Jan 2020, 12:40 AM
Olívia - avatar
1 Answer
+ 1
duplicated question please remove https://www.sololearn.com/Discuss/2123574/?ref=app
5th Jan 2020, 2:15 AM
Gordon - avatar