There is a function we are providing in for you in this problem
called square. It takes one integer and returns the square of
that integer value. Write code to assign a variable called xyz
the value 5*5 (five squared). Use the square function, rather
than just multiplying with *.plz provide me code
Answers
Answered by
12
To assign the square value of 5 into a variable 'xyz'.
>>> xyz = 5**5
>>>print(xyz)
25
The symbol for exponentiation is (**).
For instance, 3**3 would give you 3*3*3 which is 27.
Other related symbols include integer division and modulus.
- Integer division is denoted with (//) and will only give you the quotient.
For example, 10//3 would give you 3.
- Modulous is denoted with (%) and will only give you the remainder.
For example, 10%3 would give you 1.
Answered by
14
Answer:
xyz = 5**2
def square(xyz):
return square(xyz)
Explanation:
Similar questions
Math,
5 months ago
English,
5 months ago
Economy,
11 months ago
Social Sciences,
11 months ago
Biology,
1 year ago