Question

What is the value of this expression? len(Hanna+1118) no output xt con
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Question:
What is the value of this expression?
len('Hanna'+'111B')
Ans: 9

len is a python function which is used to return the count. Example: length of the characters in case of a string and the number of elements in case of a list. Basically, it will return the count.
So, len('Hanna'+'111B') which give 9 because 'Hanna' and '111B' are concatenated and produce the result 'Hanna111B'. Now we are using the len function on this string which returns the count of the number of characters. The number of characters is 9. It will evaluate to 9.

Please check the compiled program and its output for your reference:
main.py 1 print(len(Hanna+111B) )
Output:
input 9 Program finished with exit code o Press ENTER to exit console. I
(Feel free to drop me a comment, If you need any help)

Hope this Helps!!!
Please upvote as well, If you got the answer?
If not please comment, I will Help you with that...

Add a comment
Know the answer?
Add Answer to:
What is the value of this expression? len('Hanna'+'1118) no output xt con
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT