A snail climbs a pole, “H” meters in height. It climbs up “A” meters during the day, and slides down “B” meters during the night. It is known that A > B, and B is greater than or equal to 0. On which day, will the snail reach the top of the pole? My solution…
Tag: Challenge
Digital Clock Python Challenge
The goal of this Python challenge was to create a program which would convert the amount of seconds given by the user (starting from 0:00), to an h:mm:ss notation. The amount of hours must not go over 23, just like on a digital clock. My solution is displayed below. First, the program takes in the…
Convert Minutes into Seconds
Challenge 002 Write a function that takes an integer minutes and converts it to seconds. Solution
Return the Next Number from the Integer Passed
Challenge 001 Create a function that takes a number as an argument, increments the number by +1 and returns the result. Examples Solution:
Return the Sum of Two Numbers
Challenge 000 Create a function that takes two numbers as arguments and return their sum. Examples Solution: