Ad
Code
Diff
  • 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!\nThis is my first python script.\nPython will be fun to learn!\nI am not at COGS\nI am at home in my jammies.")
    • 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."]]
    • data = ["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."]
    • list(map(print, data))
    • print(f"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.")