Answer:
18
Explanation:
lets go step by step.
the function called tryIt has a value, a variable named "a". this "a" variable will be whatever the user enters when the program says, Enter a number.
ok so if we enter "a" as 2, and b in the function will always be 7, and 2 + 7 equals 9,
and the ans variable (short for answer) will take the result of the function (9) and multiply it by 2,
then the answer is 18
Answer:
Here you go :)
Explanation:
Change this however you'd like:
array = []
for n in range(10):
x = int(input("Enter integer: "))
array.append(x)
dup = set(array)
print(", ".join(str(i) for i in dup))
Answer:
-26
Explanation:
The given binary number is 1110 0101. Also given that the signed binary number is represented using one's compliment.
We begin by computing the 1s complement representation of 1110 0101 by inverting the bits: 00011010
Converting 00011010 to decimal, it corresponds to 26.
So the 1s complement of the original number is 26. This means that the original number was -26.
Ump will be assigned to word2
word1[0:3] gets all of the letters from index 0 to index 3 exclusive (that means index 3 is not included)
Answer:
The correct option is;
MapReduce runs without fault tolerance
Explanation:
Map Reduce is a technique of processing or a framework of software, that is geared towards managing, sorting and handling large data by working in the Map and Reduce phases where the map function involves the dividing, filtering and sorting of the data and mapping of the split data while the reduce method involves the rearranging, summary activities having the data reduced.