Tất cả bài viết được gắn tag python-basics
1 bài viết
Khóa học Python cơ bản từ đầu cho người mới bắt đầu. Học variables, data types, functions, OOP và các kiến thức nền tảng Python cho web development, data science, automation và nhiều lĩnh vực khác.
23 bài viết
Giới thiệu tổng quan về Python - ngôn ngữ lập trình đa năng, phổ biến. Tìm hiểu lịch sử, đặc điểm, ứng dụng của Python và cách cài đặt, chạy chương trình Python đầu tiên.
Học về variables và data types trong Python. Tìm hiểu cách khai báo biến, các kiểu dữ liệu cơ bản (int, float, str, bool), type conversion và naming conventions.
Học về các operators trong Python - arithmetic, comparison, logical, assignment operators. Thực hiện phép tính, so sánh và logic với dữ liệu.
Học về strings trong Python - tạo chuỗi, string methods, slicing, formatting với f-strings, và xử lý chuỗi ký tự hiệu quả.
Học về lists trong Python - tạo list, truy cập phần tử, list methods cơ bản như append, extend, insert, remove, pop và các thao tác với list.
Học về lists nâng cao trong Python - list comprehension, nested lists, sorting với key, lambda functions, và các kỹ thuật xử lý list hiệu quả.
Học về tuples trong Python - collection bất biến, tuple packing/unpacking, so sánh với lists, và khi nào nên dùng tuples.
Học về dictionaries trong Python - key-value pairs, tạo dict, truy cập và thay đổi, dictionary methods cơ bản và operations.
Học về dictionaries nâng cao trong Python - dictionary comprehension, defaultdict, Counter, và các kỹ thuật xử lý dictionary hiệu quả.
Học về sets trong Python - collection duy nhất, set operations (union, intersection, difference), set methods và khi nào dùng sets.
Học về control flow trong Python - if/else statements, if-elif-else chains, nested conditions, logical operators và ternary operator.
Học về loops trong Python - for loop, while loop, break/continue, nested loops, enumerate, zip và các pattern thực tế.
Học về functions trong Python - định nghĩa hàm, parameters, return values, default arguments, keyword arguments và docstrings.
Học về *args, **kwargs, lambda functions, variable scope, recursion và advanced function concepts trong Python.
Học về modules trong Python - import, create modules, __name__, __main__, và module organization.
Học về packages trong Python - package structure, __init__.py, pip, virtual environments, và dependency management.
Học về File I/O trong Python - open, read, write files, file modes, with statement, và text file operations.
Học về CSV files, JSON files, binary files, và file system operations trong Python.
Học về exception handling trong Python - try/except, raise, finally, else, và built-in exception types.
Học về custom exceptions, exception chaining, context managers, traceback, và advanced error handling patterns.
Học về OOP trong Python - classes, objects, __init__, self, instance/class attributes, và methods.
Học về OOP nâng cao trong Python - inheritance, polymorphism, encapsulation, property decorators, và magic methods.
Bài tập thực hành tổng hợp kiến thức Python cơ bản với các dự án thực tế có hướng dẫn chi tiết.