Which of the following command lines starts the python progr

Which of the following command lines starts the python program sum.py so that it will read its input from values.txt instead of the keyboard?  

A) python sum.py < values.txt

B) python sum.py > values.txt

C) python values.txt < sum.py

D) python values.txt > sum.py

Solution

Answer: A) python sum.py < values.txt

This statement will read its input from values.txt instead of the keyboard

Which of the following command lines starts the python program sum.py so that it will read its input from values.txt instead of the keyboard? A) python sum.py &

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site