Line
can work too... if in the original 1st line "Coordinates" are replaced with "Position":
coords = EntityValue[GeoEntities[Entity["Country", "Australia"], "City"], "Position"]
LJ you should carefully examine the outputs your code produces and you would be able to figure out the issue. Something changed in syntax but there are still a work around so you can go further with your studies.
Cheers!