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.
Answer:
In a digital camera, exactly the opposite happens. Light from the thing you are photographing zooms into the camera lens. This incoming "picture" hits the image sensor chip, which breaks it up into millions of pixels. The sensor measures the color and brightness of each pixel and stores it as a number.
Explanation:
Answer:
Derive FROM invoice_transaction, invoice_details, item_details
and JOIN customer_details ON (invoice_transaction.CUST_ID = customer_details.CUST_ID AND customer_details.FIRST_NAME = 'James' AND customer_details.LAST_NAME = 'Gonzalez')
Explanation:
The following details will be there in the invoice
-
item_details
- rep_details
- invoice_details
- customer_details
- invoice_transaction
Derive FROM invoice_transaction, invoice_details, item_details
and JOIN customer_details ON (invoice_transaction.CUST_ID = customer_details.CUST_ID AND customer_details.FIRST_NAME = 'James' AND customer_details.LAST_NAME = 'Gonzalez')
Answer:
one inch=25.4
12 meters=13.12
10 quarts=9.46
12 milliliters=0.0004
400 pounds= 181 kg
25 meters/second=82
68F=20C
Explanation:
heres the full ones
one inch=25.4
12 meters=13.1234 yards
10 quarts=9.46353
12 milliliters=0.000405768
400 pounds=181.437
25m/s=82.021f/s
68f=20C
Answer:
numbers = []
for i in range(3):
numbers.append(eval(input("Enter number: ")))
print('Sum is:', sum(numbers))
Explanation:
You want to use a loop to prevent repeating your code.