() Metode atas Python3
deskripsi
atas () metode python dalam huruf kecil string untuk huruf besar.
tatabahasa
atas () sintaks metode:
str.upper()
parameter
- NA.
Kembali Nilai
Kembali huruf kecil ke huruf besar tali.
contoh
Contoh berikut menunjukkan fungsi atas () untuk menggunakan:
#!/usr/bin/python3 str = "this is string example from w3big....wow!!!"; print ("str.upper() : ", str.upper())
Contoh hasil output di atas adalah sebagai berikut:
str.upper() : THIS IS STRING EXAMPLE FROM w3big....WOW!!!