-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathawsprojectwk12.py
More file actions
29 lines (24 loc) · 888 Bytes
/
awsprojectwk12.py
File metadata and controls
29 lines (24 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Objectives
# Create a List of Services IE S3, Lambda, EC2, etc.
# 1. The list should be empty initially.
# 2. Populate the list using append or insert.
# 3. Print the list and the length of the list.
# 4. Remove two specific services from the list by name or by index.
# 5. Print the new list and the length of the list.
# Objective 1 - Create and Empty List
services = []
# Objective 2 - Populate the list using append or insert
services.append("S3")
services.append("EC2")
services.append("Lambda")
services.append("DynamoDB")
services.append("AmazonRDS")
# Objective 3 - Print the list and the length of the list
print(services)
print(len(services))
# Objective 4 - Remove two specific services from the list by name or by index.
services.remove("S3")
services.remove("EC2")
print(services)
# Objective 5 - Print the new list and the new length of the list
print(len(services))