+ 1
Application of List in Python
Assigning values to a List
5 Respostas
+ 2
Hi Pius Githugu
I do not know python
However it looks like the lists can be linked so that a citie will correspond to a crime rate
For example:
City: Albuquerque Crime rate: 749
+ 1
Google has a descrpition if you use it!
+ 1
thanks everyone for your answers
0
cities = []
cities.append("Albuquerque")
cities.append("Anaheim")
cities.append("Anchorage")
cities.append("Arlington")
cities.append("Atlanta")
crime_rates = []
crime_rates.append(749)
crime_rates.append(371)
crime_rates.append(828)
crime_rates.append(503)
crime_rates.append(1379)
print(cities)
print(crime_rates)
0
I don't understand the application of this 👆☝