The course is outdated and is for ArcGIS API for Python 2.3 and older. Since 2.4 the WebMap class has been replaced with the Map class. The Map class has a property called basemap which is a BasemapManager object, which in turn has a basemap property to set the basemap for a Map.
So it would look like this...
map1.basemap.basemap = "streets"