WAP stands for Write A Program
WAP in Python to check whether two strings are anagrams of each other using only for loops.
Input: “listen”, “silent”
Output: True
An anagram of a string is another string that contains the same characters, only the order of characters can be different.
WAP to flatten a nested list (i.e., a list of lists) into a single list using for loops.
Input: a = [[1,2], [3,4,5],[6]]
Output: 1, 2, 3, 4, 5, 6,
WAP to calculate the sum of the product of corresponding elements from two lists.
Input: a = [1, 2, 3], b = [4, 5, 6,]Office:- 660, Sector 14A, Vasundhara, Ghaziabad, Uttar Pradesh - 201012, India