The document provides 10 programming questions as homework for a Class 11 computer science winter break. Students are asked to write Python programs to: 1) swap the first two characters of two input strings and combine them; 2) exchange the first and last characters of an input string; 3) reverse a string if its length is a multiple of 4; and 4) count the occurrences of each word in a given sentence. Additional problems include printing a list after removing even numbers, appending one list to another, finding the second largest number in a list, changing the position of every nth value in a list, getting the 4th element from the last of a tuple, and converting a list to a tuple.
The document provides 10 programming questions as homework for a Class 11 computer science winter break. Students are asked to write Python programs to: 1) swap the first two characters of two input strings and combine them; 2) exchange the first and last characters of an input string; 3) reverse a string if its length is a multiple of 4; and 4) count the occurrences of each word in a given sentence. Additional problems include printing a list after removing even numbers, appending one list to another, finding the second largest number in a list, changing the position of every nth value in a list, getting the 4th element from the last of a tuple, and converting a list to a tuple.
The document provides 10 programming questions as homework for a Class 11 computer science winter break. Students are asked to write Python programs to: 1) swap the first two characters of two input strings and combine them; 2) exchange the first and last characters of an input string; 3) reverse a string if its length is a multiple of 4; and 4) count the occurrences of each word in a given sentence. Additional problems include printing a list after removing even numbers, appending one list to another, finding the second largest number in a list, changing the position of every nth value in a list, getting the 4th element from the last of a tuple, and converting a list to a tuple.