7 kyu

Guess My Number

Description:

Your Goal is to create a function that takes two strings, a guess and a phone number.

Based on the guess, the function should display a portion of the phone number:

guess_my_number('052', '123-451-2345')
would return the string: '#2#-#5#-2##5'

or

guess_my_number('142', '123-451-2345')
would return the string: '12#-4#1-2#4#'

Order of the guess string should not matter, and should not have duplicates of the ten digitis 0-9. Guess will never be an empty string or contains any other charachters. The phone number will always bea ten digit number in the format ###-###-####.

The default number of 123-451-2345 should be included, but can be overwriten by a different number if supplied at the time of execution.

Fundamentals

Stats:

CreatedNov 24, 2015
PublishedNov 24, 2015
Warriors Trained773
Total Skips30
Total Code Submissions890
Total Times Completed494
Python Completions494
Total Stars9
% of votes with a positive feedback rating89% of 138
Total "Very Satisfied" Votes111
Total "Somewhat Satisfied" Votes24
Total "Not Satisfied" Votes3
Total Rank Assessments19
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • adwoodsteacher Avatar
  • myjinxin2015 Avatar
  • saudiGuy Avatar
Ad