APURV
  • Home
  • Journey
  • Projects
  • Blogs
  • Interview
  • Exams
Resume
APURV

Building scalable, secure, and production-ready cloud infrastructure. Automation first.

NAVIGATION

HomeExperienceProjectsCertificationsSkills

TECH STACK

AWSGCPK8sCI/CDLinuxDocker

CONNECT

LinkedInGitHubEmailResume

© 2026 Apurv Gujjar. All rights reserved.
Apurv Gujjar
Apurv GujjarDevOps & Cloud Engineer
|Interview Documentation
Portfolio
Handbooks
🎯Linux🐙Git & GitHub🤖GitHub Actions🌐Networking☁AWS🛠Terraform🐳Docker☸Kubernetes📊Monitoring🛡DevSecOps💰Cost Optimization🚨Incident Scenarios👤HR & Behavioral☁GCP🐍Python
Interview DocumentationPythonWhat is the difference between a List and a Tuple?
Back to all Python questions
Q1

What is the difference between a List and a Tuple?

💬Answer
  • List ([]): Mutable (can be modified after creation).
  • Tuple (()): Immutable (cannot be changed once created).
  • DevOps Use Case: Use a list for dynamic data (e.g., list of IPs retrieved from AWS API that you need to filter). Use a tuple for fixed data (e.g., a hardcoded set of allowed HTTP response codes (200, 201, 204)).
my_list = [1, 2, 3]
my_tuple = (1, 2, 3)

my_list[0] = 10  # Works
# my_tuple[0] = 10 # Raises TypeError

Related Python Questions

View All PythonQuestions →
Q2

What is the difference between the `==` and `is` operators?

Q3

What are the primary Python data types?

Q4

What is a dictionary and why is it heavily used in DevOps?

Q1

How do you print all EC2 instance names stored in a list?

Apurv Gujjar - DevOps & Cloud Engineer
Created by

Apurv Gujjar

DevOps & Cloud Engineer

Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio