Good evening sir,
the result of the task given on dictionary
Stanley Omeike Gideon Odekina
English Hausa
Good evening sir,
the result of the task given on dictionary
Stanley Omeike Gideon Odekina
Good afternoon sir this is my assignment@Stanley Omeike
Abiodun Adeiye
Delete Comment
Are you sure that you want to delete this comment ?
Ummi Abdullahi
In Python list, pop( 0 ) is a method that removes and returns the element at index 0 (the first element) from the list. Here is how the gdp_list.pop( function worked in the case of the exercise given:
1. Removes the first element (10 ) from gdp_list and assigns it as the 'gdp' value for the first country in
country_dict3.
2. On the next iteration, it removes the new first element (20 ) from gdp_list and assigns it as the 'gdp' value for the second country.
3. This continues until all GDP values have been removed from gdp_list and assigned to the corresponding countries in country_dict3.
Delete Comment
Are you sure that you want to delete this comment ?
Ummi Abdullahi
Delete Comment
Are you sure that you want to delete this comment ?