python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How can I remove \n from a string without translate, replace or strip
I'm making a simple rpg and I'm trying to add a feature where the user can type 'save' and their stats will be written onto a txt file named 'save.txt'.
Here is the code for the saving:
elif first_ste...
DylanHammond2022
Votes: 0
Answers: 1
python - removing whitespaces not working - encoding issue?
I have a dataset which contains data scraped from a real estate agency.
I want to clean the variables from special characters (€, m², etc), remove whitespaces and convert them into integers.
For insta...
LBedo
Votes: 0
Answers: 2
`strip` Python method non-obvious behavior
I was surprised about strip Python method behavior:
>>> 'https://texample.com'.strip('https://')
'example.com'
It was not obvious, because usually I use strip with an one-char argument.
This...

Evgenii
Votes: 0
Answers: 1
How do I input multiple arguments into strip() function?
today I was tasked to create a program that takes a user input and prints out the vowels and constants of what the user input was. I thought I was doing good so far but then I got an error while tryin...
Ruben Lozano
Votes: 0
Answers: 1