Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. '''string1 = str(input("Enter your message non case sensitive"))
  2. string2 = " This is Test String2 to strip leading space"
  3. print ("str.lsplit() functionality is NOT WORKING as expected for
  4. user inputn","user_Input String1n",string1,"nuser_output
  5. String2n",string1.lstrip())
  6. print ("str.lsplit() functionality is WORKING for hardcoded string
  7. inputn","Input String2n",string2,"noutput
  8. String2n",string2.lstrip())
  9. '''
  10.  
  11. '''Enter your message non case sensitive " This is Test String1 to
  12. strip leading space"
  13. str.lsplit() functionality is NOT WORKING as expected for user
  14. input
  15. user_Input String1
  16. " This is Test String1 to strip leading space"
  17. user_output String2
  18. " This is Test String1 to strip leading space"
  19. str.lsplit() functionality is WORKING for hardcoded string input
  20. Input String2
  21. This is Test String2 to strip leading space
  22. output String2
  23. This is Test String2 to strip leading space
  24. Process finished with exit code 0
  25. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement