+ 1

Application of List in Python

Assigning values to a List

1st Jul 2018, 6:55 PM
Pius Githugu
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
1st Jul 2018, 7:13 PM
Agent
Agent - avatar
+ 1
Google has a descrpition if you use it!
1st Jul 2018, 7:54 PM
coolboy7
coolboy7 - avatar
+ 1
thanks everyone for your answers
4th Jul 2018, 2:45 PM
Pius Githugu
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)
1st Jul 2018, 6:56 PM
Pius Githugu
0
I don't understand the application of this 👆☝
1st Jul 2018, 6:57 PM
Pius Githugu