Answer:
def sum_digits(number):
total = 0
if 1 <= number <= 999:
while number > 0:
r = int (number % 10)
total +=r
number /= 10
else:
return -1
return total
print(sum_digits(658))
Explanation:
Write a function named sum_digits that takes one parameter, number
Check if the number is between 1 and 999. If it is, create a while loop that iterates until number is greater than 0. Get the last digit of the number using mudulo and add it to the total. Then, divide the number by 10 to move to the next digit. This process will continue until the number is equal to 0.
If the number is not in the given range, return -1, indicating invalid range.
Call the function and print the result
You Need Software To Screen Capture
The Software You can use is OBS its free and there are watermarks
The statement is false, technical skills are those that serve to perform a specific function and are also called hard skills.
Technical skills are skills that include knowledge in the mechanical, computer, mathematical or scientific area that will allow a good performance of specific tasks.
- A person with technical or hard skills is able to apply specific methods, procedures and techniques in a specialized field.
- Soft skills refers to the characteristics and personal competencies that show how a person copes with others, it is related to emotional intelligence.
Therefore, we can conclude that technical or hard skills are the practical knowledge necessary to perform specific tasks, while soft skills are those skills associated with the ability to interact effectively on a personal level.
Learn more about technical skills here: brainly.com/question/10976877
The cell reference refers to a cell on a worksheet and can be used in a formula to point another location.
Explanation:
A cell reference is a range of cells on a worksheet that can be used in a formula to find the values or data you want to calculate using that formula.
There are two types of cell references relative and absolute. they both behave differently when copied to other cells. Relative references change when a formula is copied to another cell.
Absolute reference remains constant even if they are copied. In a formula multiplications are performed before subtraction.
It does not change when the formula is copied or moved to another cell.
Answer:
self-modeling
Explanation:
Robots, which are man-made machines which mimics the actions of man like walking, talking, rendering assistance are part of the future plans to make the society easier. It was mans' attempt to improve the society but still happens to be work in progress.
For the robots to be able to carryout its function, there is need for it to be self modelling in the sense of initiating and executing the commands which was already programmed into it. <em>For example, telling it to walk will be initiated by him as a command, after processing the command, it will execute it without any other information.</em>