Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. def numOfShtuzimOptions(length_of_phone):
  2.     if length_of_phone == 1:
  3.         return 10
  4.     else:
  5.         return 18 * (length_of_phone - 1)  #9 possible initial digits, 2 options for next option
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement