Question 1: What is the output of the following Python code? ```python numbers = [1, 2, 3, 4, 5] result = sum(numbers) print(result) ``` A) 15 B) 10 C) 5 D) Error Answer: A) 15 Explanation: The code calculates the sum of all numbers in the `numbers` list using the `sum()` function and then prints the result, which is 15. ------------------------------------------------------------------------- Question 2: What does the following Python code do? ```python text = "Hello, World!" result = text.split(",") ``` A) Splits the text at commas and stores the parts in a list. B) Reverses the text. C) Removes all commas from the text. D) Raises an error. Answer: A) Splits the text at commas and stores the parts in a list. Explanation: The `split(",")` method splits the text at each comma and returns a list containing the parts. In this case, the result will be `['Hello', ' World!']`. --------------------------------------------------------------------...
"Welcome to Bhuj Edu Info – your complete education guide for Bhuj and Kutch. Whether you are a student, parent, or teacher, here you will find the latest information on schools, colleges, admissions, university results, scholarships, and government education schemes. We also share updates on competitive exams, career opportunities, and student resources to help you achieve success in your academic and professional journey. With accurate, reliable, and timely updates