mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
commit
2c8b7d4813
@ -233,7 +233,7 @@ fruits[0] = 'avocado'
|
||||
print(fruits) # ['avocado', 'orange', 'mango', 'lemon']
|
||||
fruits[1] = 'apple'
|
||||
print(fruits) # ['avocado', 'apple', 'mango', 'lemon']
|
||||
last_index = len(fruits)
|
||||
last_index = len(fruits) - 1
|
||||
fruits[last_index] = 'lime'
|
||||
print(fruits) # ['avocado', 'apple', 'mango', 'lime']
|
||||
```
|
||||
|
||||
@ -430,7 +430,7 @@ To run the python file check the image below. You can run the python file either
|
||||
|
||||
### Exercise: Level 2
|
||||
|
||||
1. Create a folder named day_1 inside 30DaysOfPython folder. Inside day_1 folder, create a python file helloword.py and repeat questions 1, 2, 3 and 4. Remember to use _print()_ when you are working on a python file. Navigate to the directory where you have saved your file, and run it.
|
||||
1. Create a folder named day_1 inside 30DaysOfPython folder. Inside day_1 folder, create a python file helloworld.py and repeat questions 1, 2, 3 and 4. Remember to use _print()_ when you are working on a python file. Navigate to the directory where you have saved your file, and run it.
|
||||
|
||||
🎉 CONGRATULATIONS ! 🎉
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user