I'm trying to write slicing code which gets a linked list, start,stop, step.
My code is supposed to behave like same as using list[start:step:stop].
My problem starts when the user insert only 1 argument (let's says it was x) - then,
x is supposed to get into stop and and not start. But, I have been told that optional
arguments need to appear at the end of all the arguments.
Can someone tell me how can we insert only 1 input to the second argument while the first one is mandatory but the second one is not? By the way, i can't use built-in functions
start:stop:step?Keywordarguements, where you can specifykey=valuetype of arguements, and limit yourpositional/mandatoryarguement inside yourfunction/method