เมื่อต้องการหาค่าเฉลี่ยจำนวนหลักตัวเลข (average digit count) ในลิสต์ สามารถใช้ลูป iteration, str() และตัวดำเนินการ / ได้ ตัวอย่าง my_list = [324, 5345, 243, 746, 432, 463, 946787] print(The list is :) print(my_list) sum_digits = 0 for ele in my_list: sum_digits += len(str(ele)) my_result = sum_d