Answer to Question #284440 in Python for Jamal Raheed

Question #284440

3. The More, The Lengthier

by CodeChum Admin


I think it's already a given that two sentences combined will always be longer than a single sentence alone, but to prove just how long two sentences can be, why don't we let our program show the combined length of the two randomly inputted strings?


Let's get it on!


Input


Two lines containing a string on each.


Python is fun

I love CodeChum


Output


A single line containing an integer.


28



1
Expert's answer
2022-01-03T04:28:23-0500
# Python 3.9.5

f_str = input('Enter first string: ')
s_str = input('Enter second string: ')

print(len(f_str)+len(s_str))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS