Question: My main issue is this error being displayed:

```
TypeError: a float is required

```

I haven't tried much as I don't really know what I'm doing, being very new to coding and all, so I would appreciate some patient advice on the matter.

```
from math import sqrt

n = raw_input('Type number here: ')

def square_root(n):
  """Returns the square root of a number."""
  square_rooted = sqrt(n)
  print "%d square rooted is %d." % (n, square_rooted)
  return square_rooted

square_root(n)

```

I want to be able to type in a number and it display the square root of it.

Answer: 
Change your codes to convert string to float. Input results into a string format.

```
square_rooted = sqrt(float(n))

```

Also; change your code in displaying the values. Use %s instead of number (%d)

```
"%s square rooted is %s."

```

Sample:

```
Type number here: 81
81 square rooted is 9.0.

```
This worked for me, had to fix syntax based on my version of python- 

```
from math import sqrt

n = input('Type number here: ')

n = float(n)

def square_root(n):

   #"""Returns the square root of a number."""

   square_rooted = sqrt(n)

   print("%d square rooted is %d." % (n, square_rooted))
   return square_rooted

square_root(n)

```