Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Why do you copy standard library’s doc? What’s the point? You won’t teach anybody that way. One can read the documentation 10 times, learn everything about oop, functions, types, loops, etc and won’t be able to write two useful lines of code. Do you know why?
- MIllena
Can you please add the third argument replace() can take, which is the number of times the character will be replaced if there are multiple instances of the character within the string? I’m a beginner in python and I was trying to remove a character from a string but only a certain amount of times, not all instances. When I searched google, your article was the top result. But I had to browse several stack overflow threads to get the information. If you add it to your article, you might just make it easy for the next beginner in python.
- Joy
i want to remove only first char from a string but in this its remove all char related to that… for an example “helloworld” this is string i want remove only first “h” from string “helloworld”
- Prakash choudhary
Pankaj , your article was nice, but i stuck in solving same kind of problem. Can you help me. I have a dataset and i want to remove certain character from column. Column datatype is object. I am giving you example below- Mileage 21.6 km/kg 18.2 kmpl and so on, I have number of values. I want to remove km/kg and kmpl from the columns values. How can i do that. Thanks & Regards Ajay
- AJAY
Sir ,it removes all the character. For eg: If I remove ‘i’ in ‘initial’. It’s output is ‘ntal’.(it removes all ‘i’ in the string
- Shankar
i want to replace lowercase characters before and after key in given string “there is A key to Success”
- vrushali ingulkar
Hi, I have list of tuple. From that I want to remove few characters from tuple. Please check the below example: x = [(‘url/user/123’, ‘url/site/2’), (‘url/user/125’, ‘url/site/5’)] expected result: [(‘123’, ‘2’), [(‘125’, ‘5’)]]
- Ash
HI @Pankaj i want to replace or remove some variable from string that should not be print in after execution it should remove couple multi variable not only one variable so how can i do that Ex:-- from a input string we need to remove set of variable and need to print after removing it. so how can i do it i have tried with replace and TRAN but its not working. so help me out.
- ibrahim