Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 448 Bytes

File metadata and controls

33 lines (20 loc) · 448 Bytes

Python demo

Do Math in python / python REPL:

1 + 1
8 - 1
10 * 2
35 / 5

Activity

Implement the isEven function:

def isEven(number):
    # TODO implement isEven

print('10 is even: ' + str(isEven(10)) )
print('23 is even: ' + str(isEven(23)) )

Activity

Write python code to print numbers 1 to 50, each on a new line: