Skip to main content

All Questions

0 votes
2 answers
1k views

Python: Custom print function that prints function text

Python script: text = "abcde" print("text[::-1] : ", text[::-1]) print("text[5:0:-1] : ", text[5:0:-1]) Output: text[::-1] : edcba text[5:0:-1] : edcb Can a custom ...
user avatar