49836/reverse-a-string-in-python
You should try to use the following code which is an extended syntax of slice which works by using [begin:end:step] by leaving the begin and end off along with clarifying a -1 step which will reverse the string.
>>> 'hello world'[::-1] 'dlrow olleh'
How about: >>> 'hello world'[::-1] 'dlrow olleh' This is ...READ MORE
>>> 'hello world'[::-1] 'dlrow olleh' This is extended slice syntax. Syntax is ...READ MORE
Hi@akhtar, Strings can be reversed using slicing. To ...READ MORE
To reverse a string in Python we ...READ MORE
>>> 'hello world'[::-1] 'dlrow olleh' This is extended slice syntax. It ...READ MORE
You can use the paste() command: You can ...READ MORE
class Solution: def firstAlphabet(self, s): self.s=s k='' k=k+s[0] for i in range(len(s)): if ...READ MORE
Joining strings in R is quite an ...READ MORE
The reason is that they are using ...READ MORE
After what I observed, you would have ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.