View flickr_get_photos_in_set.py
from google.appengine.api import urlfetch
from bs4 import BeautifulSoup
class FlickrPhoto(object):
"""
Construct the base url for flickr photo.
"""
base_url = 'http://farm%s.staticflickr.com/%s/%s_%s_%s.jpg'
View python_palindrome.py
"""
Python palidrome finders.
3 methods for finding palindromes with python.
"""
def is_palindrome_v1(s):
if len(s) <= 1:
return True
else:
return s[0] == s[-1] and is_palindrome_v1(s[1:-1])