Ad
Code
Diff
  • def print_statements():
        print(f"Hello Mark!"+"!"*10)
    • 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.")
    • print(f"Hello Mark!"+"!"*10)
Code
Diff
  • is_even = lambda x: 1 + x&1
    is_even = lambda e: e%2==0
    • is_even = lambda x: 1 + x&1
    • is_even = lambda x: 1 + x&1
    • is_even = lambda e: e%2==0