This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def title_case(title, minor_words): | |
final = "" | |
minor_words = [word.lower() for word in minor_words ] # make sure the minor words are all lower case | |
title = title.lower().split() # make title all lowercase and split into a list of words | |
final = title[0].capitalize() # always capitalize the first word | |
for word in title[1:]: #capitalize words not in list | |
if word not in minor_words: | |
final += ' ' + word.capitalize() | |
return final |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Boku in Heat</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Fusion Tables styling</title> | |
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCu0KqDrN-FYvzwTCzec_EakWQlcPeoPC8&sensor=false"></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a'dls;kf'adfklo |