PicoCTF - Serpentine
Use wget to download the Python file.
man wget
wget https://artifacts.picoctf.net/c/37/serpentine.py
sudo nano serpentine.py
Inspect the source code of the Python file and just in the second if statement add this.
elif choice == 'b':
print('\nOops! I must have misplaced the print_flag function! Check my source code!\n\n')
print(f"{print_flag()}")
All the information was there. We just need to print out the flag.