Share your repls and programming experiences

← Back to all posts
Python String Sub
ChristianKeith (0)

def StringSub(Item,Num1,Num2): stra = "" for i in range(int(Num2)): if i >= int(Num1): stra = stra+Item[i] return(stra)
This is a string sub method I made in Python. If It looks it bit crapy its my second day of learning python so please spare me.