Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 311 Bytes

File metadata and controls

26 lines (21 loc) · 311 Bytes
a = {1: 'one', 2: 'two'}

print(a.get(3, "idk")) # idk
x = 0

while x < 2:
    x += 1
else:
    print("x>2")
    # runs if in while finished without "break"
print(
    list(
        reversed(
            range(1, 10)
        )
    )
)   # [9, 8, 7, 6, 5, 4, 3, 2, 1]