Anybody know how i can prompt Ai to build me a python script that can do the following?
-
how can i prompt Ai to build me a simple script that can do the following:
I have two files containing thousands of lines of number combinations,
each line containing six numbers. Something like this:
2 12 46 52 65 3
1 2 21 37 43 21
9 11 30 43 69 20
3 11 13 24 39 22
2 26 45 46 52 21To be clear, they are lottery combinations. So i have two files containing such data, thousands of lines of combinations per file. Let us call the two files FileOfu and FileAbuo.
I want a script that can look at all the combinations in FileAbuo and then check if they also exist in FileOfu. All the combinations in FileAbuo that also exist in FileOfu will be deleted, i.e, duplicates that exist in both files. The output file therefore will contain the remaining lines of combinations in FileOfu that do not also exist in FileAbou.
Literally just compare two files and eliminate identical number combinations.I have tried prompting AI to make the script, but the script it makes always falls short. With a few hundreds of lines of combinations, it works. But with thousands of lines, it fails. I wonder where i am making the mistake.
I am not a programmer, just a script kiddie.
I have tried Python script. I wonder if other languages can give better script maybe. -
how can i prompt Ai to build me a simple script that can do the following:
I have two files containing thousands of lines of number combinations,
each line containing six numbers. Something like this:
2 12 46 52 65 3
1 2 21 37 43 21
9 11 30 43 69 20
3 11 13 24 39 22
2 26 45 46 52 21To be clear, they are lottery combinations. So i have two files containing such data, thousands of lines of combinations per file. Let us call the two files FileOfu and FileAbuo.
I want a script that can look at all the combinations in FileAbuo and then check if they also exist in FileOfu. All the combinations in FileAbuo that also exist in FileOfu will be deleted, i.e, duplicates that exist in both files. The output file therefore will contain the remaining lines of combinations in FileOfu that do not also exist in FileAbou.
Literally just compare two files and eliminate identical number combinations.I have tried prompting AI to make the script, but the script it makes always falls short. With a few hundreds of lines of combinations, it works. But with thousands of lines, it fails. I wonder where i am making the mistake.
I am not a programmer, just a script kiddie.
I have tried Python script. I wonder if other languages can give better script maybe.You're not going to get it in a single description. For what you want, it's going to be an iterative process, and you have to know what you're doing and what the code is that's coming back from the AI. AI CANNOT write an entire application for you and WILL make mistakes in the code it does write. If you don't know enough about writing code, you will have no idea what you're looking at or even what the mistakes are and how to describe to the AI what they and how to fix them.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak
-
You're not going to get it in a single description. For what you want, it's going to be an iterative process, and you have to know what you're doing and what the code is that's coming back from the AI. AI CANNOT write an entire application for you and WILL make mistakes in the code it does write. If you don't know enough about writing code, you will have no idea what you're looking at or even what the mistakes are and how to describe to the AI what they and how to fix them.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak