Skip to content

Instantly share code, notes, and snippets.

@vikramdurai
Created November 28, 2016 15:11
Show Gist options
  • Save vikramdurai/4191c25dda18f6fef6815a59191b9ee1 to your computer and use it in GitHub Desktop.
Save vikramdurai/4191c25dda18f6fef6815a59191b9ee1 to your computer and use it in GitHub Desktop.
A small search engine using the Python dictionary.
keywords = {
"google":"Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at \
Stanford University, California. Together, they own about 14 percent of its shares and control 56 percent \
of the stockholder voting power through supervoting stock. They incorporated Google as a privately held \
company on September 4, 1998. An initial public offering (IPO) took place on August 19, 2004, and Google \
moved to its new headquarters in Mountain View, California, nicknamed the Googleplex.",
"skype":"Skype (/ˈskaɪp/) (stylized as skype) is an application that provides video chat and \
voice call services. Users may exchange such digital documents as images, text, video and any others, \
and may transmit both text and video messages. Skype allows the creation of video conference calls. \
Skype is available for Microsoft Windows, Macintosh, or Linux, as well as Android, Blackberry, \
Apple and Windows smartphones and tablets."
}
while True:
search = input("Search: ")
print(keywords[search], end="\n\n\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment