Computer Science, asked by lucky9452rock, 8 months ago

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 Equestriadash
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 fasateaniket5
14

Answer:

xyz = 5**2

def square(xyz):

   return square(xyz)

Explanation:

Similar questions