วันอาทิตย์ที่ 4 ตุลาคม พ.ศ. 2558

[LAB5] my_find()

def my_find():
   my_find = "Thailand"
   count = 0
   index = count
   while(count < len(my_find)):
      if(my_find[count] == "i"):
         index = count
      count = count + 1
   return index

print(my_find())

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

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