8 kyu

Are You Playing Banjo?

75,053 of 189,166MRodalgaard

Description:

Create a function which answers the question "Are you playing banjo?".
If your name starts with the letter "R" or lower case "r", you are playing banjo!

The function takes a name as its only argument, and returns one of the following strings:

name + " plays banjo" 
name + " does not play banjo"

Names given are always valid strings.

Strings
Fundamentals

More By Author:

Check out these other kata created by MRodalgaard

Stats:

CreatedJun 28, 2014
PublishedJun 28, 2014
Warriors Trained260695
Total Skips14903
Total Code Submissions394489
Total Times Completed189166
JavaScript Completions75053
Clojure Completions898
Haskell Completions1524
Java Completions19841
Ruby Completions4183
Python Completions71999
C# Completions10955
Elixir Completions545
C Completions2105
Rust Completions2554
TypeScript Completions3080
R Completions266
CoffeeScript Completions17
Crystal Completions26
Julia Completions93
Scala Completions198
Groovy Completions19
Lua Completions60
Total Stars870
% of votes with a positive feedback rating92% of 11338
Total "Very Satisfied" Votes9626
Total "Somewhat Satisfied" Votes1508
Total "Not Satisfied" Votes204
Ad
Contributors
  • MRodalgaard Avatar
  • jhoffner Avatar
  • xcthulhu Avatar
  • user578387 Avatar
  • cris Avatar
  • Jotha Avatar
  • Chrono79 Avatar
  • JohanWiltink Avatar
  • barakplasma Avatar
  • Voile Avatar
  • Souzooka Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • username0 Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • psergee Avatar
  • FranzMartyn Avatar
  • KayleighWasTaken Avatar
Ad