word = 'hello' print(''.join([i if i != 'o' else '' for i in word]))
print ("hello")- word = 'hello'
- print(''.join([i if i != 'o' else '' for i in word]))
import codewars_test as test # TODO Write tests import solution # or from solution import example # test.assert_equals(actual, expected, [optional] message) @test.describe("Example") def test_group(): @test.it("test case") def test_case(): test.assert_equals("hell", "hell")
- import codewars_test as test
- # TODO Write tests
- import solution # or from solution import example
- # test.assert_equals(actual, expected, [optional] message)
- @test.describe("Example")
- def test_group():
- @test.it("test case")
- def test_case():
test.assert_equals("hello", "hell")- test.assert_equals("hell", "hell")
even or not?