-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path16.2.py
30 lines (25 loc) · 1.07 KB
/
16.2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import requests
import string
URL = 'http://www.pythonchallenge.com/pc/def/equality.html'
r = requests.get(URL).text
n = 0
while n+8 != len(r):
if r[n] in string.ascii_lowercase:
if r[n+1] in string.ascii_uppercase:
if r[n+2] in string.ascii_uppercase:
if r[n+3] in string.ascii_uppercase:
if r[n+4] in string.ascii_lowercase:
if r[n + 5] in string.ascii_uppercase:
if r[n + 6] in string.ascii_uppercase:
if r[n+7] in string.ascii_uppercase:
if r[n+8] in string.ascii_lowercase:
print(r[n+4], end='')
else:
letters = ''
else:
letters = ''
else:
letters = ''
else:
letters = ''
n += 1