Move History

Rooted by: Print Statements
Fork Selected
  • Code
    def print_statements():
        # Printing lines of code:
        # [print(x) for x in ["Hello Mark!","This is my first python script.","Python will be fun to learn!","I am not at COGS","I am at home in my jammies."]]
        print("Hello Mark!\nThis is my first python script.\nPython will be fun to learn!\nI am not at COGS\nI am at home in my jammies.")
    Test Cases
    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('o', chr(ord('p')-1))
    
  • Code
    • def print_statements():
    • # Printing lines of code:
    • # [print(x) for x in ["Hello Mark!","This is my first python script.","Python will be fun to learn!","I am not at COGS","I am at home in my jammies."]]
    • print(f"Hello Mark!
    • This is my first python script.
    • Python will be fun to learn!
    • I am not at COGS
    • I am at home in my jammies.")
    • print("Hello Mark!
    • This is my first python script.
    • Python will be fun to learn!
    • I am not at COGS
    • I am at home in my jammies.")