Use your primary language, preferred python/ruby if available. XXXXXXXXXXWrite a function that receives 2 integers. returns true if those are equal, returns false if those are different XXXXXXXXXXa...

1 answer below »
Use your primary language, preferred python/ruby if available.



1 Write a function that receives 2 integers. returns true if those are equal, returns false if those are different

a List at least 5 non-trivial test cases, they have to be positive and negative.

b ETA : 10-12 min

2 Write a program that makes a call to this rest service,


3 http://services.groupkt.com/country/get/all



a Return a sorted list of countries that contain a given string either in name or in code.

b ETA 20 min

4 Write a script that gets an URL as argument. makes a ping to the host and appends the results to a file.

a ETA 20 min
Answered Same DayMay 10, 2020

Answer To: Use your primary language, preferred python/ruby if available. XXXXXXXXXXWrite a function that...

Snehil answered on May 10 2020
162 Votes
AreEqual.py
def areEqual(a,b):
if a == b:
return True
else:
return Fals
e
def main():
print(areEqual(-3,3))
print(areEqual(-3,-3))
print(areEqual(3,3))
print(areEqual(2,2-1))
print(areEqual(-1-1,-2))

main()
Ping.py
import subprocess,...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here