Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Python
  4. Anybody know how i can prompt Ai to build me a python script that can do the following?

Anybody know how i can prompt Ai to build me a python script that can do the following?

Scheduled Pinned Locked Moved Python
pythonprompts
3 Posts 2 Posters 18 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Buch 2024
    wrote on last edited by AdminTqFDXRUkude
    #1

    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 21

    To 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.

    D 1 Reply Last reply
    0
    • B Buch 2024

      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 21

      To 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.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      B 1 Reply Last reply
      0
      • D 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

        B Offline
        B Offline
        Buch 2024
        wrote on last edited by
        #3

        Ohh. Ok. Thanks for the reply. I appreciate

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups