8 kyu

101 Dalmatians - squash the bugs, not the dogs!

10,646 of 27,725PG1

Description:

Your friend has been out shopping for puppies (what a time to be alive!)... He arrives back with multiple dogs, and you simply do not know how to respond!

By repairing the function provided, you will find out exactly how you should respond, depending on the number of dogs he has.

The number of dogs will always be a number and there will always be at least 1 dog.

Good luck!
The expected behaviour is as follows:
- Your friend has fewer than 10 dogs:                    "Hardly any"
- Your friend has at least 10 but fewer than 51 dogs:    "More than a handful!"
- Your friend has at least 51 but not exactly 101 dogs:  "Woah that's a lot of dogs!"
- Your friend has 101 dogs:                              "101 DALMATIANS!!!"

Your friend will always have between 1 and 101 dogs, inclusive.
Debugging
Fundamentals

More By Author:

Check out these other kata created by PG1

Stats:

CreatedMar 26, 2016
PublishedMar 26, 2016
Warriors Trained40106
Total Skips661
Total Code Submissions88849
Total Times Completed27725
JavaScript Completions10646
Python Completions7453
Ruby Completions862
C# Completions1243
PHP Completions913
C++ Completions4000
Go Completions943
Racket Completions20
R Completions92
Haskell Completions124
Java Completions2074
Julia Completions26
Crystal Completions11
CoffeeScript Completions17
TypeScript Completions207
SQL Completions386
Total Stars221
% of votes with a positive feedback rating82% of 4170
Total "Very Satisfied" Votes3041
Total "Somewhat Satisfied" Votes727
Total "Not Satisfied" Votes402
Ad
Contributors
  • PG1 Avatar
  • GiacomoSorbi Avatar
  • aryan-firouzian Avatar
  • donaldsebleung Avatar
  • Dentzil Avatar
  • kazk Avatar
  • asedov Avatar
  • mitron6 Avatar
  • kroppt Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • rodriguini Avatar
  • user8436785 Avatar
  • ZywOo Avatar
  • ejini战神 Avatar
  • StephenDonovan1 Avatar
  • dfhwze Avatar
  • KayleighWasTaken Avatar
Ad