paint-brush
Working With Files In Pythonby@marvin
661 reads
661 reads

Working With Files In Python

by Marvin6mJune 26th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Using python 3.4 or greater, we'll be using python to create random files. We import python's function for creating random numbers and use it to select a random number between 1 and 50 for our file. In short, what this little loop does is save us, the less creative lot(don't worry, I'm part of this crew), the time of naming random files. We will simply create a file sayor, provided it falls within our range of 50, twenty times. This is just so as to create a mess large enough to give pain when moving manually.

Company Mentioned

Mention Thumbnail
featured image - Working With Files In Python
Marvin HackerNoon profile picture
Marvin

Marvin

@marvin

Software engineer. I write code and stay weird.

About @marvin
LEARN MORE ABOUT @MARVIN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Marvin HackerNoon profile picture
Marvin@marvin
Software engineer. I write code and stay weird.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite