Skip to content

Python-2022M/build_in_function_homework

Repository files navigation

Build in Function

build_func01

A integer type variable 'number' is given. Return the absolute value of a "number".

Input:number.
Output: answer.

Input Output
-8 8

build_func02

Return the value of expression: .

Input:expression.
Output: answer.

Input Output
-2.55

build_func03

A integer type variable 'n' is given. Return the value of the expression: .
Use the pow() function

Input:n.
Output: answer.

Input Output
3.5 60.75

build_func04

A integer type variable 'n' is given. Return the value of the expression: .
Use the pow() function.

Input:n.
Output: answer.

Input Output
4 4.0

build_func05

Integer type variables 'n' and 'x' are given. Return the value of the expression: .
Use the pow() function

Input:n, x.
Output: answer.

Input Output
3 6 945

build_func06

Float type variables 'a' is given. Round the result to 2 decimal places
Use the round() function

Input:a.
Output: answer.

Input Output
3.456 3.46
7.5 7.5

build_func07

Integer type variables 'x' and 'y' are given. Return the value of the expression: .
Use the pow() function

Input:x, y.
Output: answer.

Input Output
5 2 805

build_func08

Integer type variables 'x' and 'y' are given. Return the value of the expression: .
Use the pow() function

Input:x, y.
Output: answer.

Input Output
7 1 252

build_func09

Integer type variables 'x' and 'y' are given. Return the value of the expression: .
Use the pow() function

Input:x, y.
Output: answer.

Input Output
2 4 160

build_func10

Integer type variables 'x' and 'y' are given. Return the value of the expression: .
Round the result to 2 decimal places.
Use the pow() function
Use the round() function

Input:x, y.
Output: answer.

Input Output
8 4 10.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages