Tagged articles
Dictionaries
15 articles · Page 1 of 1
This tutorial introduces Python's core data structures—lists, dictionaries, sets, and tuples—and demonstrates essential file operations for text, CSV, and JSON formats, providing practical code examples for each concept and explains their characteristics, common operations, and best practices for efficient programming.
DictionariesJSONPython
0 likes · 7 min read

This tutorial introduces Python list and dictionary methods—including append, extend, pop, remove, sort, keys, values, items, get, and update—provides clear code examples for each operation, and concludes with a practice exercise that counts word frequencies in a text file.
Code ExamplesDictionariesPython
0 likes · 6 min read

This article walks through a practical Python solution for parsing a list of courier records, extracting province information, grouping entries by location using dictionaries, and optionally applying regular expressions and pandas for further analysis, all illustrated with clear code examples and output screenshots.
DictionariesPandasPython
0 likes · 11 min read

This article explains how Python's mutable list and dictionary types and immutable tuple type can be employed to organize test data, build request payloads, and parse JSON responses when automating API tests, providing clear code examples for each use case.
DictionariesPythondata structures
0 likes · 6 min read

This article presents a collection of practical Python techniques for working with built‑in container types such as lists, tuples, sets, and dictionaries, covering operations like extracting maximum values, counting elements, slicing, copying, mapping, filtering, column extraction, and transposition, all illustrated with clear code examples.
Dictionariescode-tipsdata structures
0 likes · 7 min read

This article presents 17 practical Python techniques—including swapping variables, joining lists into strings, finding the most frequent element, checking anagrams, reversing strings and lists, transposing arrays, and dictionary operations—illustrated with concise explanations and visual examples to help developers write cleaner, more efficient code.
Dictionarieslist manipulationstrings
0 likes · 4 min read

This article introduces Python's core built‑in sequence types—lists, tuples, dictionaries, and sets—explaining their characteristics, common operations, and performance considerations, and provides numerous interactive code snippets that demonstrate creation, indexing, slicing, modification, searching, sorting, and set algebra.
DictionariesPythonSets
0 likes · 11 min read

This article walks through a Python‑based solution for parsing a list of Chinese address strings, extracting province abbreviations, grouping records by province, and optionally using regular expressions or pandas for further analysis, complete with full source code examples.
Dictionariesdata-extractionlists
0 likes · 10 min read

This article demonstrates Python performance optimization techniques by showing how moving list appends and dictionary lookups outside loops reduces re‑evaluation overhead, resulting in measurable speed improvements of 200‑300 ms, and provides a timing decorator to benchmark the changes.
Dictionariesbenchmarkinglists
0 likes · 4 min read

This tutorial introduces Python as a high‑level, readable language, explains why it’s popular for web, data science and AI, and walks through core fundamentals such as variables, if/elif/else statements, while and for loops, lists, dictionaries, and iteration with clear code examples.
DictionariesLoopsPython
0 likes · 9 min read

This tutorial introduces Python's fundamental data types—including strings, numbers, lists, tuples, and dictionaries—explains their characteristics, common built‑in functions, and demonstrates practical code examples for manipulation, formatting, and conversion.
DictionariesPythonTutorial
0 likes · 11 min read

This guide walks through Python’s fundamental data structures—strings, lists, tuples, dictionaries, and sets—showing how to create, manipulate, and query them with clear code examples for operations such as slicing, joining, sorting, and set mathematics.
DictionariesSetsdata structures
0 likes · 9 min read

This guide walks through Python’s core data structures—strings, lists, tuples, dictionaries, and sets—detailing their creation, common built‑in methods, slicing, updating, and iteration with clear code examples, helping readers master essential operations for effective data manipulation.
DictionariesPythonSets
0 likes · 11 min read


21CTOJan 14, 2018 · Fundamentals
This tutorial walks you through Python's for loops, iterating over lists and dictionaries, demonstrates key-value access, explores class definitions, constructors, getters, setters, and property decorators, and shows how to create and manipulate objects with clear code examples.
ClassesDictionariesLoops
0 likes · 8 min read


21CTOJan 13, 2018 · Fundamentals
This tutorial introduces Python fundamentals, covering variables, conditional statements, while and for loops, list operations, and dictionary usage, with clear explanations and code examples to help beginners quickly start programming in Python.
DictionariesLoopscontrol flow
0 likes · 10 min read
