[Python] How do i connect 2 files and make them work like a dictonary [closed]

Discussão em 'Python' iniciado por Stack, Março 29, 2025.

  1. Stack

    Stack Membro Participativo

    Here is my file.txt:-

    Python
    Java


    Here is file1.txt:-

    Best
    Mid


    I would like to create a structure where each line from file.txt corresponds to the same line in file1.txt. I want to access the data using an index, like file[0], which should return "Best", and file[1], which should return "Mid".

    Continue reading...

Compartilhe esta Página