/zuri-anagram-task

A program that forms a word by rearranging the letters of a different word or phrase

Primary LanguagePython

zuri-anagram-task

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
For example, the word 'triangle' can be rearranged to form 'integral'. Also the word 'elbow' can be rearranged to form 'below'.

Getting Started

Python version

  • Python 3.10.4
    To check the version of your Python Programming Language, run the following command
    python --version

Start with the following instructions

  • Clone the repository to your local machine and change directory into the folder
  git clone https://github.com/0laolu/zuri-anagram-task.git
  • Open your terminal and check you have Python installed. To check, run python --version
  • Once Python is installed, run python main.py
  • Enter the first word you would like to compare (the anagram)
  • Enter the second word you would like to compare with the first returns True if both words have identical letters
    returns False if both words do not have identical letters
    returns Invalid input if both words are not of the same length