วันจันทร์ที่ 17 สิงหาคม พ.ศ. 2558

Basic Python


Variable   

รูปแบบคล้ายกับภาษาอื่นๆ แต่รูปแบบจะง่ายกว่า

x = 5
y = 10
x*y

Strings

word1 = "Good"
word2 = "Morning"
print word1, word2
sentence = word1 + " " + word2 
print sentence



if - else




Loop




ไม่มีความคิดเห็น:

แสดงความคิดเห็น