นับจำนวนคำและตัวอักษรในสตริง โดยนับตัวอักษรทุกตัว และนับคำจากจำนวนช่องว่างตัวอย่างโค้ดmy_string = Hi there, how are you Will ? print(The string is:, my_string) chars = 0 words = 1 # เริ่มที่ 1 เพราะคำแรกไม่มี space นำหน้า for ch in my_string: chars += 1 if ch == : words += 1 pri