Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''string1 = str(input("Enter your message non case sensitive"))
- string2 = " This is Test String2 to strip leading space"
- print ("str.lsplit() functionality is NOT WORKING as expected for
- user inputn","user_Input String1n",string1,"nuser_output
- String2n",string1.lstrip())
- print ("str.lsplit() functionality is WORKING for hardcoded string
- inputn","Input String2n",string2,"noutput
- String2n",string2.lstrip())
- '''
- '''Enter your message non case sensitive " This is Test String1 to
- strip leading space"
- str.lsplit() functionality is NOT WORKING as expected for user
- input
- user_Input String1
- " This is Test String1 to strip leading space"
- user_output String2
- " This is Test String1 to strip leading space"
- str.lsplit() functionality is WORKING for hardcoded string input
- Input String2
- This is Test String2 to strip leading space
- output String2
- This is Test String2 to strip leading space
- Process finished with exit code 0
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement