pahelp po kung pano matanggal yung nasa right side? need ko lang po mauha yung first 10 numbers. thank you!
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
string = "12345678901234567890"
new_string = string[:-10]
print(new_string)
string
with a value of "12345678901234567890". By using the slicing operator [:-10]
, we remove the last 10 characters from the string. The resulting string, new_string
, will be "1234567890".string
with your own string to remove the first 10 numbers from the right side.need ko lang po yung frist 10 nunbers sa galing sa left side. at pano tanggalin yung nasa sobra. gamit ko po excelcan you be more specific ts? what do you mean