Git Product home page Git Product logo

phase3-wk-1-codechallenge's Introduction

Challenge 1

Description

Convert a 12-hour time to 24-hour time format. This function takes an hour(1 to 12), minute(0 to 59), and period("am" or "pm") and returns it in 24-hour format.

Example:

Input: 8, 30, "am" Output: "0830"

Challenge 2

Check if exactly two out of three intergers are positive.The function takes three integers and returns True if exactly two of them are positive, otherwise returns False.

Example:

Input: 2, 4, -3 Output: True

Challenge Three: Consonant value

The task is to write a function that takes a lowercase string consisting of alphabetic characters only (no spaces) and returns the highest value of consonant substrings. Consonants are any letters of the alphabet except "aeiou". Each consonant is assigned a value from a = 1 to z = 26.

Example:

input: zodiacs output: 26

License

This project is licensed under the MIT License.

Author

Chrispus Wambua Email: [email protected]

phase3-wk-1-codechallenge's People

Contributors

kanviso avatar chrisskilo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.