ctf-resources/htb/hacktheboo2024/coding/[Very Easy] reversal/challenge/challenge.py

7 lines
159 B
Python

import random
def gen_question():
with open('story.txt') as f:
text = random.choice(f.readlines()).strip()
return f'{text}', f'{text[::-1]}'