Answer:
to prevent anyone from discovering it
hope this helps you
<h2>
❤itz Indian heart ❤</h2>
Answer:
def feet_to_inches( feet ):
inches = feet * 12
print(inches, "inches")
feet_to_inches(10)
Explanation:
The code is written in python. The unit for conversion base on your question is that 1 ft = 12 inches. Therefore,
def feet_to_inches( feet ):
This code we define a function and pass the argument as feet which is the length in ft that is required when we call the function.
inches = feet * 12
Here the length in ft is been converted to inches by multiplying by 12.
print(inches, "inches")
Here we print the value in inches .
feet_to_inches(10)
Here we call the function and pass the argument in feet to be converted
The correct answer is c. the default design template in a presentation program for Plato. Hope this helps :)
Answer:
The Python code is given below for each question.
Explanation:
1:
if __name__ == '__main__':
f = open('golf.txt', 'w')
n = int(input("Enter number of players:"))
for i in range(n):
name = input("Enter name of player number " + str(i + 1) + ":")
score = int(input("Enter score of player number " + str(i + 1) + ":"))
f.write(name + "\n" + str(score) + "\n")
f.close()
2:
try:
with open('golf.txt') as r:
lines = r.readlines()
for i in range(0, len(lines), 2):
print("Name:", lines[i].strip())
print("Score:", lines[i+1].strip())
print()
except FileNotFoundError:
print("golf.txt is not found!")