Q3
What are the primary Python data types?
💬Answer
- String (
str): Character sequences (e.g., IP addresses, log logs). - Integer (
int): Whole numbers (e.g., ports, retry counts). - Float (
float): Decimals (e.g., system load average). - Boolean (
bool):TrueorFalse. - List (
list): Ordered, mutable sequence of items. - Tuple (
tuple): Ordered, immutable sequence of items. - Dictionary (
dict): Key-value mappings (highly used for JSON configurations). - Set (
set): Unordered collection of unique items (useful for deduplicating data).
Related Python Questions
View All PythonQuestions →
Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio