Repeat text · ซ้ำข้อความ
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · หน้านี้ต้องใช้เบราว์เซอร์ล่าสุด (รองรับ SharedArrayBuffer) กรุณาอัปเดต Chrome, Edge, Firefox หรือ Safari เป็นเวอร์ชันล่าสุด
This one builds on a lesson you haven't finished yet. Do that lesson first: · อันนี้สร้างจากบทเรียนที่คุณยังไม่เสร็จสิ้น ให้ทำบทเรียนนั้นก่อน:
Python Basics · Working with strings · การทำงานกับสตริง →
English
Repeat text
* repeats text. "ha" * 3 becomes hahaha.
ไทย
ซ้ำข้อความ
* ทำซ้ำข้อความ "ha" * 3 จะกลายเป็น hahaha
Use * to repeat text. Show hahaha: print("ha" * 3). · ใช้ * ซ้ำข้อความ แสดง hahaha: print("ha" * 3)
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่