Use a variable · Sử dụng một biến
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Trang này cần trình duyệt gần đây (hỗ trợ SharedArrayBuffer). Vui lòng cập nhật Chrome, Edge, Firefox hoặc Safari lên phiên bản mới nhất.
This one builds on a lesson you haven't finished yet. Do that lesson first: · Bài này dựa trên một bài học bạn chưa hoàn thành. Hãy làm bài đó trước:
Python Basics · Python Cơ bản · Variables · Biến (Variables) →
English
Use a variable
A variable is a named box that holds a value. name = "Sam" puts Sam in the box name. Then print(name) shows what is inside.
Tiếng Việt
Sử dụng một biến
Một biến là một hộp có tên chứa một giá trị. name = "Sam" đặt Sam vào hộp name. Sau đó print(name) hiển thị những gì đang ở bên trong.
Put Sam in a box called name, then print(name). · Đặt Sam vào một hộp tên là name, sau đó print(name).
Click Run to see the output here. · Nhấn Chạy để xem kết quả ở đây.