Problem importing the math module


#1


https://www.codecademy.com/courses/python-beginner-c7VZg/4/2?curriculum_id=4f89dab3d788890003000096

File "python", line 3
print math.sqrt(13 689):
^
SyntaxError: invalid syntax File "python", line 3
print math.sqrt(13 689):
^
SyntaxError: invalid syntax

i'm also told

"Did you remember to import the math module? Check the Hint if you need help!"

I don't get what i'm doing wrong here. Isn't "import math" the command to import the math module. I also don' get the syntax error.

Thanks in advance :slight_smile:


import math 
from math import sqrt 
print math.sqrt(13 689):


#2

13 689?

You can't have space in a number.


#3

i see 3 issue:
1- duplicate import (not important here)
2- white space in your number
3- colon " : " at the end of print command?

use this

import math 
print math.sqrt(13689)

or

from math import sqrt 
print sqrt(13689)