7 kyu

Interactive Dictionary

3,105 of 5,620user2514386

Description:

In this kata, your job is to create a class Dictionary which you can add words to and their entries. Example:

>>> d = Dictionary()

>>> d.newentry('Apple', 'A fruit that grows on trees')

>>> print(d.look('Apple'))
A fruit that grows on trees

>>> print(d.look('Banana'))
Can't find entry for Banana
>>> Dictionary d = new Dictionary();

>>> d.newEntry("Apple", "A fruit that grows on trees");

>>> System.out.println(d.look("Apple"));
A fruit that grows on trees

>>> System.out.println(d.look("Banana"));
Cant find entry for Banana
>>> let d = new Dictionary();

>>> d.newEntry("Apple", "A fruit that grows on trees");

>>> console.log(d.look("Apple"));
A fruit that grows on trees

>>> console.log(d.look("Banana"));
Can't find entry for Banana

Good luck and happy coding!

Fundamentals

Stats:

CreatedAug 9, 2016
PublishedAug 10, 2016
Warriors Trained9178
Total Skips208
Total Code Submissions17821
Total Times Completed5620
Python Completions3105
Java Completions1191
JavaScript Completions1446
Total Stars120
% of votes with a positive feedback rating91% of 811
Total "Very Satisfied" Votes682
Total "Somewhat Satisfied" Votes111
Total "Not Satisfied" Votes18
Total Rank Assessments13
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • user2514386 Avatar
  • suic Avatar
  • russfre Avatar
  • Blind4Basics Avatar
  • Madjosz Avatar
  • FArekkusu Avatar
  • Awesome A.D. Avatar
  • heroicfun Avatar
Ad