Download (right-click, save target as ...) this page as a jupyterlab notebook from:
LAST NAME, FIRST NAME
R00000000
ENGR 1330 ES-3 - Homework
# Preamble script block to identify host, user, and kernel
import sys
! hostname
! whoami
print(sys.executable)
print(sys.version)
print(sys.version_info)
Depending on whether the number is even or odd, print out an appropriate message to the user.
Use the following cases to test your script:
number=33
number=44
Bonus(Optional):
num
) and one number to divide by (check
). If check divides evenly into num, tell that to the user. If not, print a different appropriate message.# put your Case 1 code here
# put your Case 2 code here
Create a script that accepts an integer (n) as input and computes the value of n+nn+nnn. For example for an input value of n = 5 the required result is 615
Use the following cases to test your script:
n=1
n=6
Bonus(Optional):
n=33
# put your Case 1 code here
# put your Case 2 code here