So I am given this problem:
Add an option to the menu, and decode the following series of messages.
Given:
secret_message=\
"DIIRe_teaa_utmnnh_ei_vetiedesns__g_P"+\
"se2ata_ninbglceele_a_!a!w_bRoIoer_uu"+\
"katnim_in_2tgt0e_h%_le_Pi_caknoneiog"+\
"_gleahea_tr!m!IRo_tel__ueInn,_ei_aet"+\
"Amden_s_dB_P_a2adt_nimbggaeesn_a_!a!"+\
"mIbRy_oe_auugmtnr__iav2tve0een%__g_P"+\
"aecataon_nogecleaeeac!r!h_IR_Iter__u"+\
"eannmmeio_etvtdeehs_:e_P__2aGn_neibg"+\
"ogeerh_agta!e!bR__oeH_uueItnr__iba2t"+\
"em0er_%_tB_P,aca_ton1mog6ale3nea3!r!"
Algorithm:
A counter will be set to 0
Create a pair of nested loops.
The outer loop shall be of a range of 0 to 4.
The inner loop will be a range of 1 to 5.
Inside the inner loop, the counter will be incremented.
Inside the inner loop, print the counter, the value of the outer loop, the value of the inner loop, and the value of
“secret” altered by changing the beginning of the string with the outer loop, and setting the interval of the string using the inner loop.
print count, outer, inner, secret[outer, inner]
Once this is done, a noticeable pattern will appear in the strings.
Now, using your own knowledge and the translated data, write if statements and use string properties and functions to
display the four messages cleanly. This includes replacing all underscores with single spaces. Points are awarded for
following the algorithm, solving the last step, and the corrected output.
Find:
Add this as option to your Menu.
Print out the four hidden messages.
ignore the menu part, but the actually decoding im not sure howto to go about it, it gives some instructions but its a bit vague =/
can anyone help me with this?