5575/extract-all-characters-of-a-string
Convert it to a list -
s = "string" l = list(s) print(l)
You should now get the list ['s', 't', 'r', 'i', 'n', 'g']
This is easy. Just use the list() ...READ MORE
You can use the code below: lis = ...READ MORE
The general pattern is str.split(search).join(replacement) This used to be ...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
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
s = " ".join(myList) #here " " ...READ MORE
You can use word.find('o') as well to ...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.