How python deletes the following numbers

clipboard.png
I now want to delete the last five digits, 14 15 16 17 19

Mar.21,2021

@ Cucumber has the right answer.

use del l [- 5:] .

l = [1,2,3,4,5,6,7,8,9,0]
del l[-5:]
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48d88-44cda.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48d88-44cda.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?