GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-tutorials/python-challenge/5808.py at master · feiskyer/python-tutorials

Expand file tree

/

5808.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
21 lines (16 loc) · 496 Bytes
/

5808.py

Copy path

File metadata and controls

executable file
·
21 lines (16 loc) · 496 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python
# http://www.pythonchallenge.com/pc/return/5808.html
import urllib
import Image
url="http://www.pythonchallenge.com/pc/return/cave.jpg"
filename=url.split('/')[-1]
urllib.urlretrieve(url,filename) # user: huge passwd: file
img=Image.open(filename)
w,h=img.size
im=Image.new('RGB', (w/2,h/2))
for i in range(w):
for j in range(h):
if i%2==0 and j%2==0:
im.putpixel((i / 2, j/ 2), img.getpixel((i,j)))
im.save('even.png')
# from the picture, we know next level is evil
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.