Quick actions

cmd+k|ctrl+k

Navigation

Languages

Bài 2

Snippet info

Language

Python

Visibility

public

Author

mr2uang55

Created

2016-10-16T16:57:17Z

Updated

2016-10-16T16:57:17Z

#Tao string s
s = 'hello anh Long'
#Tao s1 sao cho thuong thanh Hoa, Hoa thanh thuong
s1 =''
for word in s:
    if word.isupper():
        s1 += word.lower()
    else:
        s1 += word.upper()
print(s1)
INFO