Posts by Mairan Thales Macedo • 53 points
2 posts
-
2
votes2
answers187
viewsA: Doubt about Python’s rstrip function
I ended up discovering the answer: the rstrip function also removes all character combinations from the argument, right from the string to the first incompatibility. Thus, as the character '3' was…
pythonanswered Mairan Thales Macedo 53 -
3
votes2
answers187
viewsQ: Doubt about Python’s rstrip function
Any idea why the Python command 'i3-7023'. rstrip('-7023') result only in 'i', while the command 'i3-8819'. rstrip('-8819') result in 'i3'? One would not expect the first command to also result in…
pythonasked Mairan Thales Macedo 53