Your friend wishes to buy a new laptop, but he is confused about which laptop to buy. He asks his friends for their recommendations. The friend decides to buy the laptop that is recommended by the maximum number of his friends.
Please write a Python code for this recommendation system with no errors. The code should:
1) Get input from the user on how many friends' recommendations to consider.
2) Get the recommendations from the friends.
3) Print the recommendation result or print "confused" if there are multiple laptops with the maximum number of recommendations.
Example 1:
Enter the number of friends: 6
Enter the recommendations (string or integer based on processor number): 656777
Output: Recommended - 7
Example 2:
Enter the number of friends: 4
Enter the recommendations (string or integer based on processor number): 6555
Output: Recommended - 5
Example 3:
Enter the number of friends: 4
Enter the recommendations (string or integer based on processor number): 5544
Output: Recommended - CONFUSED (here we have two 5's and two 4's, so you are not able to make a decision)