Answer:
a
Explanation:
analog signal sent through tiny glass strands
The correct answer or solution to the question above is marked A
Answer:
The code commented is given below, also the lines that start with # are comments that explains the code.
# Create a function named times_print that receives 2 values x and y
def times_print(x, y):
# Print the formatted string
print("The value of {} times {} is {}".format(x,y,x*y))
# Create the main function
def main():
# Call the funciton times_print 3 times with different values
times_print(2,3)
times_print(4,5)
times_print(5,6)
# Execute the main function
main()
Explanation:
The code was written using Python 3.5, and here I attach the screenshots of the program running:
Answer:
file_name = 'orders.txt'
file_obj = open( file_name, 'r' )
lines = file_obj.read()
print(lines.upper(), end = '')
Explanation:
- Define the name of the file
.
- Use the built-in open function to open the file in read mode
.
- Use the built-in read function to read the file and assign this to lines variable.
- Finally display the lines by converting them to capital alphabets by using the built-in upper() function.