The exercise contains 15 questions. The solution is provided for each question.
Each question contains the necessary skills you need to learn.
I have added tips and required learning resources for each question, which helps you solve the exercise. When you complete each question, you get more familiar with a control structure, loops, string, and list.
Use Online Code Editor to solve exercise questions.
Also, try to solve the basic Python Quiz for beginners
Exercise 1: Given two integer numbers return their product. If the product is greater than 1000, then return their sum
Reference article for help:
Accept user input in Python
Calculate an Average in Python
Given 1:
number1 = 20
number2 = 30
Expected Output:
The result is 600
Given 2:
number1 = 40
number2 = 30
Expected Output:
The result is 70
Explanation:
Answer: The file may have been lost due to incompatibility with the operating system, inadequate space on the hard disk drive, or through corruption of the recycle bin.
However, I will have to ask her the following questions:
- name of operating system she is utilizing,
- the time of deletion of files,
- the kind or extension of the deleted file,
- the model number of the computer,
- the size of files created after the deletion of files.
Also, sometimes, deleted files could be irretrievable due to security breeches. The employee may not have the required access to the crucial file but accidentally stumble upon it.
After all of these have been determined, then the error is fixed, and the document/file is restored, and becomes accessible to the employee.
Answer:
To first create the header you will user the <h1></h1> tag
Then you will use css to align it to the center h1 {text-align: center;}
Explanation:
Answer:
the convergence of devices.
Explanation:
B. Accessories. Notepad, like many other useful tools, is located within the accessories area.