Answer:
- def convertStr(num):
- Number = ("One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine")
- numStr = str(num)
- output = ""
-
- for x in numStr:
- index = int(x) - 1
- output += Number[index] + " "
-
- return output
-
- value = 1234
- print(convertStr(value))
Explanation:
Firstly, create a function convertStr that take one input number (Line 1).
This function convert the input number to string (Line 3) and then use for-loop to traverse through the individual digit (Line 6). In the loop, get the target index to extract the corresponding digit letter from the Number tuple(Line 7). The target index is always equal to the current digit number - 1. Next, join the extracted digit letter from the tuple to an output string (Line 8) and return it at the end of the function (Line 10).
We test the function using 1234 as argument (Line 12 - 13) and we shall get One Two Three Four
Probably D . targets and destinations for the project
This question is way to long I don’t even understand what your asking
Answer:
a. fixation
Explanation:
Fixation, also called functional fixedness, is one of the most common factors that limit the ability of people to solve a problem. In this cognitive bias, a person is only able to use objects in ways they are normally used. Any attempt to use it in other ways to solve a problem is almost impossible.
Fixation really affects creativity. It limits the way people think. It makes people have a parochial view of the way an object can be used. It blocks the thinking ability from seeing alternative approaches to solving a problem.
Answer: C. Swap File
Explanation: Swap files provide some space for programs for the computer and virtual memory.