chevron_left chevron_right
Login Register invert_colors photo_library


Stay updated and chat with others! - Join the Discord!
Thread Rating:
  • 0 Vote(s) - 0 Average


Challenge: Python IP Checker filter_list
Author
Message
RE: Challenge: Python IP Checker #5
(12-16-2015, 03:00 PM)meow Wrote: How is this a challenge?

Code:
import urllib2
ip=urllib2.urlopen('https://icanhazip.com').read()
f=open('ip.txt', 'w')
f.write(ip)
print ip+"Written to file 'ip.txt'"
f.close()

EDIT: just realized my solution looks almost exactly like m0dem's, guess ill make it seem a little different

It doesn't have to look different. It just has to work. Smile

Reply




Messages In This Thread
Challenge: Python IP Checker - by Megan - 12-14-2015, 02:20 PM
RE: Challenge: Python IP Checker - by m0dem - 12-14-2015, 02:57 PM
RE: Challenge: Python IP Checker - by Inori - 12-16-2015, 02:39 PM
RE: Challenge: Python IP Checker - by meow - 12-16-2015, 03:00 PM
RE: Challenge: Python IP Checker - by m0dem - 12-16-2015, 03:25 PM



Users browsing this thread: 1 Guest(s)