Answer to Question #231088 in Python for ash

Question #231088

 # Method: Write levelsList to levelsFile (override the existing file)

    def writeLevelsToFile(self):

 # Open the file in a way that will override the existing file (if it already exists)

  # Use a loop to iterate over levelsList item by item

 # Convert everything in the item to a string and then add \n to it - before writing it to the file

# Close the file

1
Expert's answer
2021-08-30T17:58:56-0400
for file in files:


if os.path.is file (file) :


print (dest) print (full_dest)


full_dest os.path.join (dest, file)


print("\n")


shutil.move (file, full_dest)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS