Advertisement
Adehumble

Week2 Coding Exercise 5

Feb 8th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. #5
  2. def first_longer_than_second(character1, character2):
  3.     if len(character1)>len(character2):
  4.         print(len(character1)!=len(character2))
  5.  
  6.     elif len(character1)<=len(character2):
  7.         print(len(character1)>len(character2))
  8.        
  9. print("\tHello! Dear User. This program is written to test if the number of characters in your first input is more than that of your second input. \n \tIt will return a FALSE statement if it's otherwise.")
  10. print("_______"*17)
  11.    
  12. word1=input("Enter any first word of your choice, ")
  13. word2=input("Enter any second word of your choice, ")
  14. first_longer_than_second(word1,word2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement