# Python Basic Syntax - Cú pháp cơ bản trong Python Các cú pháp cơ bản của Python **- Kiểm tra phiên bản của Python:** ```shell $ python Python 2.4.3 (#1, Nov 11 2010, 13:34:43) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> ``` \- Nhập đoạn code sau đây và nhấn Enter: ```Python >>> print "Hello, Python!" ``` Output: ```Python Hello, Python! ``` **- Lập trình trình Python script mode:** `test.py` ```Python #!/usr/bin/python print "Hello, Python!" ``` ```shell $ chmod +x test.py # This is to make file executable $./test.py ``` Output: ```Python Hello, Python! ``` **- Từ khóa trong Python:**
andexecnot
assertfinallyor
breakforpass
classfromprint
continueglobalraise
defifreturn
delimporttry
elifinwhile
elseiswith
exceptlambdayield