Comments on: Python Strings https://coderslegacy.com/python/python-strings/ Imparting knowledge to the Future Wed, 01 Jun 2022 18:52:26 +0000 hourly 1 By: fred https://coderslegacy.com/python/python-strings/#comment-1305 Wed, 01 Jun 2022 18:52:26 +0000 https://codersrefuge.000webhostapp.com/?page_id=630#comment-1305 I would like to suggest a small complement. there is a third parameter in the splice to define the step in advance..
example -> aze=’I like flowers and i\’m going to plant them in my garden’
maybe you want to read caracters 3 by 3,
you can use: aze[0:len(aze):3] or aze[::3] giving “Ii ora ‘gntpntmnyae”

]]>
By: Siddiqi https://coderslegacy.com/python/python-strings/#comment-1033 Thu, 18 Nov 2021 12:25:02 +0000 https://codersrefuge.000webhostapp.com/?page_id=630#comment-1033 In reply to Steve3.

Thanks for the heads-up. It has been corrected.

]]>
By: Steve3 https://coderslegacy.com/python/python-strings/#comment-1031 Wed, 17 Nov 2021 19:48:10 +0000 https://codersrefuge.000webhostapp.com/?page_id=630#comment-1031 Iterating through a string it should be:
print(x) not print(a) (which just prints the whole string)

]]>