your friend and you made a list of topics and both of them voted if they like or on coring
Answers
Explanation:
The question refers to the form of solving or tackling a problem by first gathering the data in the form or a table. Then each entry in the table would be analysed and a cumulative result is then populated. This approach is a method of quantitative analysis.
In quantitative approach, analysis is mainly revolved around factual or historical data based on certain events. This involves the application of statistical analysis
Language used: Python Programming
Program:
#Enter Bob's choices
bob = input()
#Enter Alice's choices
alice = input()
#Make sure that both strings are of the same size.
#Iterating over the strings by comparing the choices of each index in 2 strings with each other. If they are the same, increment the common value by 1.
common = 0
for i in range(len(bob)):
if bob[i] == alice[i]:
common = common + 1
print(common)
Input 1:
010101
101101
Output 1:
3
Input 2:
111111
000000
Output 1:
0
Learn more:
1) Printing all the palindromes formed by a palindrome word
brainly.in/question/19151384
2) Indentation is must in python. Know more about it at:
brainly.in/question/17731168