In python 3+:
import random
secret_number = random.randint(1,10)
guess_one = int(input("Enter player one's guess: "))
guess_two = int(input("Enter player two's guess: "))
if abs(guess_one - secret_number) < abs(guess_two - secret_number):
print(f"The secret number is {secret_number} and player 1 was closest")
elif abs(guess_one - secret_number) > abs(guess_two - secret_number):
print(f"The secret number is {secret_number} and player 2 was closest")
else:
print(f"The secret number is {secret_number} and it was a tie")
I hope this helps!
(03.02 LC)
Integrity, positive attitude, and punctuality are considered __________ skills.
interpersonal
mathematical
personal
verbal
Question 2 (Multiple Choice Worth 3 points)
(03.02 LC)
What is the ability to pay attention to and interpret what other people are saying?
Collaboration
Decision-making
Listening
Problem-solving
Question 3 (Multiple Choice Worth 3 points)
(03.02 MC)
Devon keeps his commitments, submits work when it's due, and shows up when scheduled. What personal skill does Devon demonstrate?
Attire
Collaboration
Dependability
Verbal
Question 4 (True/False Worth 3 points)
(03.02 LC)
Curfew is an example of a workplace policy.
True
False
Question 5 (Multiple Choice Worth 3 points)
(03.02 MC)
A technology company only hires applicants who are under the age of 30. This company could face possible __________ consequences.
academic
gender
legal
technological
Answer: I didn’t have a “date”, I went with friends.
Answer:
by myself
Explaination: Iḿ not the social type
b. Windows 95
c. Windows 98
d. Windows NT
Answer:
work in a different location four days a week.
Answer:
The solution code is written in Python:
m = 1
n = 5
d = random.randint(m, n)
Explanation:
To get a random integer between m and n inclusive, we can make use of Python randint method. It will take two parameters, m and n. By giving two integers as an input (e.g. 1 and 5) to randint, it will generate a random integer between 1 to 5 inclusive.