Day14 ----> 90DaysOfDevOps Challenge @TWS

Day14 ----> 90DaysOfDevOps Challenge @TWS

Day 14 Task: Python Data Types and Data Structures for DevOps

Data Types

Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data.

Data Structures

Data Structures are a way of organizing data so that it can be accessed more efficiently depending upon the situation. Data Structures are fundamentals of any programming language around which a program is built. Python helps to learn the fundamental of these data structures in a simpler way as compared to other programming languages.

Tasks

1. Give the Difference between List, Tuple and Set. Do Handson and put screenshots as per your understanding.

  • Lists and sets are mutable, while tuples are immutable.

  • Lists and tuples are ordered, while sets are unordered.

  • Sets can contain only unique items, while Lists and Tuples can contain duplicates.

  • Lists are created using square brackets [] or and tuples using parentheses (), while sets are created using curly braces {}.

2. Create the below Dictionary and use Dictionary methods to print your favorite tool just by using the keys of the Dictionary.

fav_tools = { 1:"Linux", 2:"Git", 3:"Docker", 4:"Kubernetes", 5:"Terraform", 6:"Ansible", 7:"Chef" }

image

image

3. Create a List of cloud service providers eg.

cloud_providers = ["AWS", "GCP", "Azure"]

image

4. Write a program to add Digital Ocean to the list of cloud_providers and sort the list in alphabetical order.

image

image

Day14 task is Completed!

90DaysOfDevOps Tasks👇

github.com/Chaitannyaa/90DaysOfDevOps.git

(6) Activity | Chaitannyaa Gaikwad | LinkedIn