name = "Python"
I want to split the variable name into 'Pyt' and 'hon' using the split method.
I have achieved this with name[0:3] and name[3:] and saving both of them in different variables but can it be done using a method ?
name = "Python"
I want to split the variable name into 'Pyt' and 'hon' using the split method.
I have achieved this with name[0:3] and name[3:] and saving both of them in different variables but can it be done using a method ?
