LAST NAME, FIRST NAME
R00000000
ENGR 1330 Laboratory 3 - In-Lab
# Preamble script block to identify host, user, and kernel
import sys
! hostname
! whoami
print(sys.executable)
print(sys.version)
print(sys.version_info)
Example 1: Calculate the sum of two numbers
Given two integer numbers return their sum.
number1 = 11
number2 = 12
result = number1+number2
print(result)
Example 2: Calculate the product of two numbers
Given two integer numbers return their product.
number1 = 11
number2 = 12
result = number1*number2
print(result)
Exercise 1: Given two integer numbers return their product only if the product is greater than 1000, else return their sum.
number1 = 20
and number2 = 30
number1 = 40
and number2 = 30
# put your Case 1 code here
# put your Case 2 code here
Exercise 2: Write a program to check if the given number is a palindrome number. A palindrome number is a number that is same after reverse. For example 545, is a palindrome number.
# put your Case 1 code here
# put your Case 2 code here
Here are some great reads on this topic:
Here are some great videos on these topics: