Oct-12-2016, 08:33 PM
I don't really understand how I am supposed to change my code to work to print the proper flag out in the text.
The flag itself is 30 characters long. An example of what the flag would look like is: f l a g { e a s y _ p e a s y _ l e m o n _ s q u e e z y }
Now I obviously can see the flag is in the beginning and it does up by a quadratic formula, but when I run the code I only get the "f" and "l" of flag. Please help. Sorry if my formatting is bad.
The flag itself is 30 characters long. An example of what the flag would look like is: f l a g { e a s y _ p e a s y _ l e m o n _ s q u e e z y }
f = open("quad_radical.txt") txt = f.read() p = 0 count = 0 for i in range(30): p = count ** 2 print txt[p] count = count + 1The text file that I am looking through looks like this:
Now I obviously can see the flag is in the beginning and it does up by a quadratic formula, but when I run the code I only get the "f" and "l" of flag. Please help. Sorry if my formatting is bad.