1. Which of the following commands will redirect errors in a script to a file? Answers user@ubuntu:~$ ./calculator.py >> error_file.txt user@ubuntu:~$ ./calculator.py 2> error_file.txt user@ubuntu:~$
Category: Course 2- Using Python To Interact With THe Operating System
Using Python To Interact With the Operating System Week 5 Answers
1. You can verify that software code behaves correctly using test ___. Answers Arguments Cases Loops Functions 2. What is the most basic way of
Using Python To Interact With The Operating System Week 4 Answers
1. Which command will print out the exit value of a script that just ran successfully? Answers wc variables.py echo $? echo $PATH import sys
Using Python To Interact With the Operating System Week 3 Answers
1. When using regular expressions, which of the following expressions uses a reserved character that can represent any single character? Answers re.findall(fu$, text) re.findall(f*n, text)
Using Python To Interact With the Operating System Week 2 Answers
1. The create_python_script function creates a new python script in the current working directory, adds the line of comments to it declared by the ‘comments’ variable,
Using Python to Interact With the Operating System Week 1 Answers
1. Which of the following is the most modern, up-to-date version of Python? Answers Python 3 Python 2 Python 4 Anaconda 2. Which of the