carmmmm / AutoCoder

Configuration files for GitHub Actions and scripts to interact with ChatGPT
1 stars 2 forks source link

Create a Python script to process user input and generate reports #4

Open carmmmm opened 1 month ago

carmmmm commented 1 month ago

Task Description

Please create a Python script that accomplishes the following tasks:

  1. Read User Input:

    • The script should prompt the user to enter their name and age.
    • It should handle both integer and string inputs.
  2. Generate Report:

    • Based on the user input, generate a simple text report.
    • The report should include:
      • The user's name.
      • The user's age.
      • A message indicating whether the user is a minor (under 18) or an adult (18 and above).
  3. File Structure:

    • Create a file named report.py.
    • The file should include necessary comments and docstrings.
  4. Expected Content:

    • The generated report file should be a well-formatted Python script that meets the above requirements.

Example

Here is an example of the expected script behavior:

Enter your name: John Enter your age: 25

Report Generated: Name: John Age: 25 Status: Adult

csharp Copy code

Label

Please ensure that this issue has the autocoder-bot label so that it can be processed by the ChatGPT integration.

Thank you!