First code and error, could not find where is it?

First coding and problem to find where is the error of syntax? Could someone help:)?

— code from a book
from tkinter import HIDDEN, NORMAL, Tk, Canvas
root = Tk ()
c = Canvas(root, width=400, height=400)
c.configure(bg=‘dark blue’, highlightthickness=0)
c.pack()
root.mainloop()

c.body_color =‘SkyBlue1’
body = c.create_oval(35, 20 , 365, 350, outline=c.body_color, fill=c.body_color)
ear_left = c.create_polygon(75, 80, 75, 10, 165, 70, outline=c.body_color, fill=c.body_color)
ear_right = c.create_polygon(255, 45, 325, 10, 320, 70, outline=c.body_color,
fill=c.body_color)
foot_left = c.create_oval(65, 320,145, 360, outline=c.body_color, fill= c.body_color)
foot_right = c.create_oval(250, 430, 330, 360, outline=c.body_color, fill= c.body_color)
eye_left = c.create_oval(130, 110, 160, 170, outline=‘black’ , fill=‘white’)
pupil_left = c.create_oval(140, 145, 150, 155, outline=‘black’, fill=‘black’)
eye_right =c.create_oval(230, 110, 260, 170, outline=‘black’, fill=‘white’)
pupil_right =c.create_oval(240, 145, 250, 155, outline=‘black’, fill=‘black’)

mouth_normal = c.create_line(170, 250, 200, 272, 230, 250, smooth=1, widht=2, state=NORMAL)

—Shell

Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32
Type “copyright”, “credits” or “license()” for more information.

==== RESTART: C:\Users\Hilla Kela\iCloudDrive\Python\Lemmikki\lemmikki.py ====
Traceback (most recent call last):
File “C:\Users\Hilla Kela\iCloudDrive\Python\Lemmikki\lemmikki.py”, line 9, in
body = c.create_oval(35, 20 , 365, 350, outline=c.body_color, fill=c.body_color)
File “C:\Users\Hilla Kela\AppData\Local\Programs\Python\Python36\lib\tkinter_init_.py”, line 2489, in create_oval
return self.create(‘oval’, args, kw)
File "C:\Users\Hilla Kela\AppData\Local\Programs\Python\Python36\lib\tkinter_init
.py", line 2474, in _create
*(args + self._options(cnf, kw))))
_tkinter.TclError: invalid command name “.!canvas”

Hi,

First, move the line root.mainloop() to the very end. This line tells tkinter to wait for interactions.

Next, correct the typo on what is currently the second last line, to change widht to width.

It should work then.