# Using Code to Analyze Words on a Letter-Based Combination Lock

DevFeed: [Using Code to Analyze Words on a Letter-Based Combination Lock](<https://devfeed.tech/articles/let-s-code-about-bike-locks-40529.md>)

Original publisher: [Read original article](<http://nbviewer.ipython.org/url/norvig.com/ipython/Fred%20Buns.ipynb>)

Published: 2015-06-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [Peter Norvig](<https://devfeed.tech/sources/peter-norvig.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [function](<https://devfeed.tech/tags/function.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [writing-code](<https://devfeed.tech/tags/writing-code.md>)

## AI overview

This coding tutorial models a four-tumbler WordLock combination lock and uses dictionary words and generated letter combinations to investigate how many words the lock can make, whether alternative tumbler letters produce more words, and whether words can appear across multiple lines.

## Source excerpt

How many words can be made from a letter-based combination lock?