During his memorial address this afternoon by President Obama in Dallas he had this to say: “We flood communities with so many guns that it is easier for a teenager to buy a Glock than it is to get his hands on a computer or even a book” (see 1:14:10 into the clip).
Since the president talks about teenagers, it should be noted that it is already against federal law for some one under age 21 to buy a handgun, such as a Glock, from a licensed firearms dealer.
Thus if the president is talking about legally purchased guns his statement is wrong.
As to the ease of obtaining a book or a computer, there are 80 public libraries in Chicago and 95 public high schools (of course, there are also 92 private high schools in the city). For a city of 228 square miles, there is a public library every 2.85 square miles (228 square miles/80). Since books and computers are also available for teenagers at public high schools, while the schools are not likely to be equally spread out, you have on average either a library or high school every 1.3 square miles (if a school or library is in the middle of that area, that means an average maximum distance of .65 miles). While some people will be located right in the middle of the distance between libraries or public high schools, most people will be closer than that.
Two cautions should be raised for these numbers. The public schools and libraries are probably not equally spread out. That would mean some distances are larger than the .65 mile average maximum distance. On the other hand, given that much of the city is industrial and people don’t live in those areas, the true density of public high schools and libraries is probably significantly higher. We have no idea which of these two effects are larger, but over all it seems unlikely that the distances are
Possibly the president is talking about easy access to illegally obtained guns, but libraries and public high schools don’t charge anything to get access to computers or books and illegal guns are not free. Possibly gangs are so closer than than these public libraries and high schools, but it is still pretty obvious that it still isn’t easier to obtain a gun given that access to these public high schools and libraries are free.