bai 3 - 3
s = 'thiendiahoi..us.lx.py.thong'
index = s.rfind('.')
if index == -1:
print('nothing to show')
elif s[index:] == '.':
print('nothing to show 2')
else:
print(s[:index])INFO
s = 'thiendiahoi..us.lx.py.thong'
index = s.rfind('.')
if index == -1:
print('nothing to show')
elif s[index:] == '.':
print('nothing to show 2')
else:
print(s[:index])