Answers for "how does python handle empty string / array"

3

how to remove integer from string in python

>>> s = '12abcd405'
>>> result = ''.join([i for i in s if not i.isdigit()])
>>> result
'abcd'
Posted by: Guest on February-20-2020
0

adding a variable to a string without using + in javascript

let a = 5;
let b = 10;
console.log(`The sum of a and b is ${a+b} and the multiplication is ${a*b}`); 
// The sum of a and b is 15 and the multiplication is 50
Posted by: Guest on March-26-2020

Code answers related to "how does python handle empty string / array"

Python Answers by Framework

Browse Popular Code Answers by Language