Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> Python

วิธีแปลง Lowercase เป็น Uppercase ใน Python

ใช้เมธอด upper()

ตัวอย่าง

>> 'HellO'.upper()
'HELLO'
>>> 'leaning tower of pisa'.upper()
'LEANING TOWER OF PISA'