/PyramidDecode

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

PyramidDecode

#WHAT IT DOES ?

Simply it just do the famous pyramid decoding which stores words with their ids in a pyramid and decode the hidden message

#HOW TO USE ?

  1. Create or modify a new txt file.
  2. Add a number & a word in every line
  3. Run the python code and ensure that it matches the txt file

#HOW IT WORKS ?

  1. Firstly it opens the txt file and store every line in a dictionary.
  2. Converts this dictionary into a pyramid.
  3. Prints all the ID's of last elements in every line ( those we need for decoding ).
  4. Using those ID's it gets the name of every element and print it.