Challenge 014 Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below to get an idea of what the function should do. Examples Solution
Tag: Language Fundamentals
To the Power of _____
Challenge 013 Create a function that takes a base number and an exponent number and returns the calculation. Examples Solution
Return a String as an Integer
Challenge 012 Create a function that takes a string and returns it as an integer. Examples Solution
Convert Hours Into Seconds
Challenge 011 Write a function that converts hours into seconds. Examples Solution
Return the First Element in a List
Challenge 010 Create a function that takes a list and returns the first element. Examples Solution
Find the Perimeter of a Rectangle
Challenge 009 Create a function that takes length and width and finds the perimeter of a rectangle. Examples Solution
Area of a Triangle
Challenge 008 Write a function that takes the base and height of a triangle and return its area. Examples Solution
Convert Age to Days
Challenge 006 Create a function that takes the age and return the age in days. Examples Solution
Return the First Element in a List
Challenge 005 Create a function that takes a list and returns the first element. Examples Solution
Convert Hours and Minutes Into Seconds
Challenge 004 Write a function that takes two integers (hours, minutes), converts them to seconds, and adds them. Examples Solution
Return the Remainder from Two Numbers
Challenge 003 There is a single operator in Python, capable of providing the remainder of a division operation. Two numbers are passed as parameters. The first parameter divided by the second parameter will have a remainder, possibly zero. Return that value. Examples Solution
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: