Skip to content
Sign UpLog In
Profile icon

Daniel Stein

@DanielStein5
  • Connect 4 Project

    Cover page
    Made with C++

    you can play connect 4.

    Recent comments (0)
Repls
Community
DanielStein5
DanielStein5
published a Repl
8 months ago
0
Mario game?
Mario game?Mario
DanielStein5
DanielStein5
shared a Post
1 year ago
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
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
DanielStein5
DanielStein5
published a Repl
1 year ago
1
TIME CONVERTER
TIME CONVERTER turns 24 hour time into 12 hour time