Daniel Stein
@DanielStein5
0
Mario game?Mario
5
0
0
Write a progra that validates a word typed in is not too exciting by checking for exclamation marks or hastags. If neither s present, then the sentenc
MattDESTROYER You will need to be more specific about what language you are using. Many languages have an indexOf (or similarly named) method that can be used on strings to find the index of a string within a string (or if the string is not inside the string it usually returns -1, which is why this will be useful for you).
Some examples in different languages:
JavaScript:
function validate(str) {
return str.indexOf("#") == -1 && str.indexOf("!") == -1 ? "Good" : "Too exciting";
}
Python:
def validate(str)1 year ago
1
TIME CONVERTER turns 24 hour time into 12 hour time
17
0
1