Problem Statement :- In second-year computer engineering class, group A student's play cricket, group B students play badminton and group C students play football. Write a Python program using functions to compute the following:- a) List of students who play both cricket and badminton b) List of students who play either cricket or badminton or both c) Number of students who play neither cricket nor badminton d) Number of students who play cricket and football but not badminton. (Note- While realizing the group, duplicate entries should be avoided, Do not use SET built-in functions) Note :- Scroll horizontally to see the full line of code. def Addelem ( A , a ): for i in range ( a ): elem = input ( "Enter the name of student:" ) if ( elem ...
Dive into the dynamic world of technology with Space of Coders. Explore Computer Science, C++, JavaScript, Web Development, Data Science, AI, and Blockchain. Elevate your skills through insightful programming tips, and cybersecurity strategies, and stay ahead of the curve with the latest tech trends. Your ultimate destination for mastering the digital landscape awaits!
Comments
Post a Comment