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
If someone wants to put data in order (ascending or descending) they should sort the data.
c. Sort
<u>Explanation:</u>
Sorting is the process of arranging the data on the basis of some property or attribute. Using the find command, conducting a query, and mapping the data would not help.
There are various sorting algorithms like the bubble sort, selection sort, insertion sort, quick sort, and merge sort. Out of all the attributes, one or a combination of attributes can be selected to serve as the basis for sorting.
Answer:
developer tool
Explanation:
if you're using chrome click on the 3 dots that's in the top right corner and go to tools, you will see "developer tools" and click on that, then you will see an icon that shows a laptop/computer and an iphone click on that and you can even choose the type of phone you wish to see the view of (ex. iphone X), refresh the page and you will be able to see the direct message icon and you will be able to message your friend.
good luck.
Answer:
True
Explanation:
Merge & Center is a feature in excel that combines multiple cells and centers the contents of the first cell. You can merge columns and rows too.