38272/write-program-string-string-occurrences-changed-except-itself
You can use the code below:
lis = [] s=input("Enter String") for ch in s: if ch in lis: lis.append('$') else: lis.append (ch) print(''.join(str(i) for i in lis))
Here's the code: check = input("Enter the character: ...READ MORE
If you are talking about the length ...READ MORE
Trying to get a graph where if ...READ MORE
i have textfile now i want to ...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
following way to find length of string x ...READ MORE
FOLLOWING WAY TO FIND CURRENT TIME IN ...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.