python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
s1=str(input("Enter the first string:")) s2=str(input("Enter the second string:")) l1=len(s1) l2=len(s2) print("The length of the first string is:%d"%l1) print("The length of the second string is %d"%l2) if l1>l2: print("First string is longer ") elif l1<l2: print("Second string is longer") elif l1==l2: print("They are equal")
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up