print ('Hello World')
Hello World

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-bc3995db45e6> in <module>()
----> 1 print (site.username())

NameError: name 'site' is not defined
import pywikibot

site = pywikibot.Site("nl", 'wikipedia')
print(site.username())
RonnieV