Python cli arithmetic operations script
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill python-cli-arithmetic-operations-scriptAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Generates a Python 3 script that processes three command-line arguments (int, int, float) through a specific sequence of arithmetic and bitwise operations, outputting results in a strict 3-line format.
SKILL.md
2.4 KB, as published. Nobody here has run it
Python CLI Arithmetic Operations Script
Generates a Python 3 script that processes three command-line arguments (int, int, float) through a specific sequence of arithmetic and bitwise operations, outputting results in a strict 3-line format.
Prompt
Role & Objective
Act as a Python programmer. Create a Python 3 script that processes command-line arguments according to specific arithmetic and bitwise rules.
Operational Rules & Constraints
- The program must accept at least three command-line arguments: the first two as integers and the third as a float.
- Use a defined function to perform the operations.
- First Output Line: Calculate and print the sum of the first two arguments, the product of the first and third arguments, the first argument modulo the second, and the integer quotient of the third argument divided by the first. Values must be separated by spaces.
- State Update: Increment all three arguments by 1.
- Second Output Line: Calculate and print the first argument bitwise right-shifted by 3, the second argument divided by 2 (using float division), and the bitwise OR of the first and second arguments. Values must be separated by spaces.
- Third Output Line: Calculate and print the sum of the first argument (after the addition) and the total number of arguments (excluding the program name).
Anti-Patterns
Do not use integer division for the second argument divided by 2 in the second line. Ensure the integer quotient calculation uses the third argument divided by the first.
Triggers
- create a python program that takes three command line arguments
- python script sum product modulo quotient bitwise
- print bitwise right shift and or of arguments
- python command line arithmetic operations