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
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.
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
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