Python เบื้องต้นสำหรับการเงิน
Adina Howe
Professor



$$

| ตัวดำเนินการ | ความหมาย |
|---|---|
| + | บวก |
| - | ลบ |
| * | คูณ |
| / | หาร |
| % | โมดูลัส (เศษจากการหาร) |
| ** | ยกกำลัง |
# Print the sum of 8 and 4
print(8 + 4)
12
# Print 8 divided by 4
print(8 / 4)
2
print(){{4}} อย่างชัดเจน# Print 8 divided by 2
print(8 / 2)
# Print 2 raised to the power of 2
print(2**2)
# Print 1.0 add 0.10
print(1.0 + 0.10)
Python เบื้องต้นสำหรับการเงิน