[Python] assistance needed with my csv file, i am new to this

Discussão em 'Python' iniciado por Stack, Abril 10, 2025.

  1. Stack

    Stack Membro Participativo

    So i have done my csv body writeup, i am new to python so i am not sure if it works but when i try to run something thank links to the function the csv is in, it says file does not exist but i dont know how to make the file, i have already setup the file path way but i dont know what to do to make the file so i can actually see the output. I hope you can all understand my ancient language one part of my code looks a lil bit like this:

    with open("C:\\Users\\brigh\\OneDrive\\Documents\\CourseWork Computer Science\\vendor_information.csv" , "a", newline = "") as file:
    writer = csv.writer(file)
    writer.writerow([vendor_identity , email , phone_number , vendor_name])


    The error being given is this: FileNotFoundError:


    [Errno 2] No such file or directory:
    'C:\\Users\\brigh\\OneDrive\\Documents\\CourseWork Computer
    Science\\vendor_information.csv'​

    Continue reading...

Compartilhe esta Página