Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 2.33 KB

README.md

File metadata and controls

79 lines (49 loc) · 2.33 KB

May the Fourth: Jedi Training

Welcome to the May the Fourth Jedi Training repository! In the Star Wars universe, Jedi Knights are skilled in the use of the Force, a mystical energy that they can manipulate to achieve various abilities. This project simulates Jedi training by creating a Python program that generates a sequence of numbers and applies various transformations to them using... the power of code!

Description

The may.py script generates a sequence of 10 random numbers between 1 and 10 and applies the following transformations:

  1. Multiply every even number by 2
  2. Add 5 to every odd number
  3. Replace any number greater than 10 with 1

Finally, the program prints the final transformed sequence to the console.

Execution

To run the script, follow these steps:

  1. Clone the repository:
git clone https://github.com/rainleander/may-the-fourth.git
  1. Change directory to the cloned repository:
cd may-the-fourth
  1. Run the script using Python:
python may.py

The script will output the final transformed sequence of numbers.

License

This project is licensed under the Apache 2.0 License which means you can freely use, modify, distribute, and even commercially exploit the code, as long as you comply with the terms of the license and include the required copyright notice and disclaimers in any redistributed code.

Collaboration

We welcome contributions and improvements to the code. To collaborate on this project, follow these steps:

  1. Fork the repository: Click the "Fork" button on the top-right corner of the repository page.

  2. Clone your forked repository:

git clone https://github.com/<your-username>/may-the-fourth.git
  1. Create a new branch for your changes:
cd may-the-fourth
git checkout -b my-feature-branch
  1. Make changes to the code and commit them:
git add .
git commit -m "Add my feature"
  1. Push your changes to your forked repository:
git push origin my-feature-branch
  1. Create a pull request: Go to the original repository, click on the "Pull Requests" tab, and click the "New Pull Request" button. Choose your forked repository and your feature branch, then click "Create Pull Request."

After submitting your pull request, maintainers will review your changes, and if approved, they will be merged into the main repository.

May the fourth be with you!