Slice list into 3 equal chunks and reverse each chunk using python programming
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Hint:
slice()
function to get the chunk and reverse itSolution:
len()
functionslice(start, end, step)
function and reverse it using thereversed()
functionstart
andend
value will change