Humanities/Arts Exam  >  Humanities/Arts Questions  >  Two statements are given below:Statement I: s... Start Learning for Free
Two statements are given below:
Statement I: strings = ['apple', 'banana', 'cherry', 'date']lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]
Statement II: strings = [ 'cherry', 'date', 'apple', 'banana',]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]
  • a)
    Both Statement I and Statement II are correct.
  • b)
    Both Statement I and Statement II are incorrect.
  • c)
    Statement I is correct, but Statement II is incorrect.
  • d)
    Statement I is incorrect, but Statement II is correct.
Correct answer is option 'A'. Can you explain this answer?
Most Upvoted Answer
Two statements are given below:Statement I: strings = [apple, banana, ...
lengths = list(map(lambda s: len(s), strings))
The above line will count the number of characters in each string and store the result in list lengths. So, in first statement result will be [5,6,6,4] and the result of second statement will be [6,4,5,6].
Explore Courses for Humanities/Arts exam

Top Courses for Humanities/Arts

Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer?
Question Description
Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer? for Humanities/Arts 2025 is part of Humanities/Arts preparation. The Question and answers have been prepared according to the Humanities/Arts exam syllabus. Information about Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer? covers all topics & solutions for Humanities/Arts 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer?.
Solutions for Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Humanities/Arts. Download more important topics, notes, lectures and mock test series for Humanities/Arts Exam by signing up for free.
Here you can find the meaning of Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer?, a detailed solution for Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer? has been provided alongside types of Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Two statements are given below:Statement I: strings = [apple, banana, cherry, date]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]Statement II: strings = [ cherry, date, apple, banana,]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]a)Both Statement I and Statement II are correct.b)Both Statement I and Statement II are incorrect.c)Statement I is correct, but Statement II is incorrect.d)Statement I is incorrect, but Statement II is correct.Correct answer is option 'A'. Can you explain this answer? tests, examples and also practice Humanities/Arts tests.
Explore Courses for Humanities/Arts exam

Top Courses for Humanities/Arts

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev