Advertisement
FranzVuttke

my_slice

Oct 2nd, 2023 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | Source Code | 0 0
  1. def m_slice(f, d, s):
  2.  
  3.     result = s[f]
  4.     while (True):
  5.         f += d
  6.         if f > len(s)-1:
  7.             break
  8.        
  9.         result += s[f]
  10.         #print(f)
  11.     return result
  12.  
Tags: myslicing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement