Zworykin invented a television transmitting and receiving system employing cathode ray tubes.
I’m not 100% sure about this but I think it is A
Answer:
The function is as follows:
def concList(aList):
retList = ""
for i in aList:
if(str(i).isdigit()):
retList+=str(i)
else:
retList = "Not digits"
break;
return retList
Explanation:
This defines the function
def concList(aList):
This initializes the return string to an empty string
retList = ""
This iterates through aList
for i in aList:
This converts each element of the list to an empty list and checks if the string is digit
if(str(i).isdigit()):
If yes, the element is concatenated
retList+=str(i)
If otherwise
else:
The return string is set to "No digits"
retList = "Not digits"
And the loop is exited
break;
This returns the return string
return retList
Answer:
Please find the complete question in the attached file.
Explanation:
Following are the code to the given question:
-module(helloworld)//use a module
-export([start/0])
start() ->//start module
func([Head Taill) ->//defining a method func that takes a parameter
{
first, second} = Head,//holding head value
if
//defining if block
first > second -> func(Tail)//method func that takes a parameter
true ->
[first, second}|func(Tail)]//method func that takes a parameter
end