DaChad1523 / HIT-137-Assignment-2

0 stars 0 forks source link

Question 2 #3

Open DaChad1523 opened 2 months ago

DaChad1523 commented 2 months ago

Here’s an adventurous story intertwined with Python programming questions that involve nested for loops, conditional statements, string manipulations, and more.
The Quest for the Hidden Treasure: Deep within the mystical lands of Pythoria lay the fabled Temple of Codes, rumored to house a treasure of knowledge guarded by enigmatic puzzles. The path is challenging, and only those who can do the coding will unravel the final word, leading to the treasure.

Chapter 1: The Gatekeeper image

The above algorithm generates a number (n). You should use this number to change the pixels (r,g,b) in the provided image (Chapter1.png) by adding the original pixel values (r,g,b) with the generated number (Example: (r+n, g+n, b+n)).
Generate a new image with the converted pixels (upload it as ‘chapter1out.png’). Finally, add all the red (r) pixel values in the new_image and provide the sum as output to move to the next chapter.

Chapter 2: The Chamber of Strings image image