What will be the output of following program:
p=[ [i*j for j in range(1,11)] for i in range(7,9)]
p1 = [[ p[i][j] for j in range(len(p[i]) //2)] for i in range(len(p)//2)]
print(p1)
Answers
Answered by
0
Answer:
Phoneix Classes has opened for enrollment for providing coaching of JEE. Students can enroll their names or cancel the enrollment by filling the application form at the office. Names of more than one student can be added in one application form. A program is developed in Python using List data type (identifier/variable name “L”) to maintain a list of the names of individual student that have enrolled for the course. The element of list is a string containing name of a student. A student’s name is added in the list at the time of enrollment and removed from the list on cancellation. Write the possible python statement for any four of the following five operations (i) Enroll name of a single applicant at the end. (string data type with identifier/variable name “Name”) (ii) Enroll names of more than one applicant provided in a list. (list data type with
Explanation:
hope this answer is useful
Similar questions