42945/how-to-capitalize-the-first-word-of-string
Refer to the below command:
txt = "hello" x = txt.capitalize() print (x)
class Solution: def firstAlphabet(self, s): self.s=s k='' k=k+s[0] for i in range(len(s)): if ...READ MORE
If you are talking about the length ...READ MORE
following way to find length of string x ...READ MORE
import re a = " this is a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
You can simply the built-in function in ...READ MORE
You can use the code below: lis = ...READ MORE
You can try with the inflect 0.2.4 ...READ MORE
OR
Already have an account? Sign in.