From b0521348f72607ba5c773f17fbd49351d662db0b Mon Sep 17 00:00:00 2001 From: Rahul Gupta <68496473+beast997@users.noreply.github.com> Date: Wed, 30 Sep 2020 21:58:50 +0500 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e342fa1b7c..4377d0c187 100644 --- a/README.md +++ b/README.md @@ -108,16 +108,16 @@ countries_of_top_cities = ['Croatia', 'USA', 'Argentina', 'Mexico', 'USA', 'Moro ### Accessing Elements of Lists -Now our `top_travel_cities` list contains multiple elements, and just like we are used to list elements having a rank or number associated with them... +Now Our `top_travel_cities` list contains multiple elements, and just like we are used to list elements having a rank or number associated with them... 1. Solta 2. Greenville 3. Buenos Aires -...a list in Python also assigns a number to each element. +...A list in Python also assigns a number to each element. -```python +```Python top_travel_cities ``` @@ -140,7 +140,7 @@ top_travel_cities -```python +```Python top_travel_cities[0] ``` @@ -372,7 +372,7 @@ top_two Now we have another variable called `top_two` that points to an array which contains an array of elements equal to the first two elements of `top_travel_cities`. -### Changing elements with destructive methods +### Changing Elements with Destructive Methods Now that we can read and select certain elements from lists, let's work on changing these lists. To add a new element to a list, we can use the `append` method.