Explanation:
i don't think rhis question could be..
Answer:
def fizzbuzz (num):
for item in range(num):
if item % 2 == 0 and item % 3 == 0:
print("fizzbuzz")
elif item % 3 == 0:
print("buzz")
elif item % 2 == 0:
print("fizz")
else:
print (item)
fizzbuzz(20)
Explanation:
Using Python programming Language
Use a for loop to iterate from 0 up to the number using the range function
Within the for loop use the modulo (%) operator to determine divisibility by 2 and 3 and print the required output
see attached program output screen.
Alexis was planning a dream vacation to Spain.
Alexis/She was especially looking forward to trying the local cuisine, including the famous Paella and Churros.
Alexis will have to practice the language
frequently to make it easier to speak with people.
Alexis/She has a long list of sights to see, including the El Prado museum and the beautiful park.
Hope this helps :)
Answer:
In computer memory, zero(0) represents the absence of an electric signal and 1 represents the presence of an electric signal.
Explanation:
Computer memory is used to store data in the form of electrical signals. Electrical signal is used to represent the presence or absence of signal. The data is stored in binary form.
Hence,
In computer memory, zero(0) represents the absence of an electric signal and 1 represents the presence of an electric signal.
Answer:
b. the cluster centers for the current iteration are identical to the cluster centers for the previous iteration.
Explanation:
K-mean algorithm is one of the mot widely used algorithm for partitioning into groups of k clusters. This is done by partitioning observations into clusters which are similar to each other. When using k-mean algorithm, each of the different clusters are represented by their centroid and each point are placed only in clusters in which the point is close to cluster centroid.
The K-Means algorithm terminates when the cluster centers for the current iteration are identical to the cluster centers for the previous iteration.