itempage = pywikibot.ItemPage(wikidata, "Q42")  # Q42 is Douglas Adams
itempage
itempage.get()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-8ff47e911433> in <module>()
----> 1 itempage = pywikibot.ItemPage(wikidata, "Q42")  # Q42 is Douglas Adams
      2 itempage
      3 itempage.get()

NameError: name 'pywikibot' is not defined
import pywikibot
itempage = pywikibot.ItemPage(wikidata, "Q42")  # Q42 is Douglas Adams

itempage

itempage.get()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-639db912fc37> in <module>()
      1 import pywikibot
----> 2 itempage = pywikibot.ItemPage(wikidata, "Q42")  # Q42 is Douglas Adams
      3 
      4 itempage
      5 

NameError: name 'wikidata' is not defined