Trying to open and duplicate a fie but keep getting error

Question:
I am Trying to open and duplicate a fie but i keep getting error and don’t know why.
Repl link:
https://replit.com/@jonathanessombe/learn-1#main.py

with open('Detailed academic report.pdf', 'rb') as rf:
  with open('Detailed academic report_test.pdf', 'wb') as wf:
    for line in rf:
      wf.write(line)

Uhh, if you read the error:

No such file or directory: 'Detailed academic report.pdf'

So upload that file first

How do i do that? i have the file downloaded in file explorer

Drag and drop from the file explorer to the sidebar

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.