Advertisement
KodingKid

Quest to Learn and Master AI in Python - Script #3

Dec 18th, 2021
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.13 KB | None | 0 0
  1. input_data1 = input()
  2. input_data2 = input()
  3. input_data3 = input()
  4. bot = input_data1 + input_data2 + input_data3
  5. for l in input_data1:
  6.     if l.isupper() is True:
  7.         print("Input 1 has passed the capitalisation check.")
  8.     if l.isupper is False:
  9.         print("Input 1 has failed the capitalisation check.")
  10.     if else:
  11.         print("Input 1 has skipped the capitalisation check.")
  12. for l in input_data2:
  13.     if l.isupper() is True:
  14.         print("Input 2 has passed the capitalisation check.")
  15.     if l.isupper is False:
  16.         print("Input 2 has failed the capitalisation check.")
  17.     if else:
  18.         print("Input 2 has skipped the capitalisation check.")
  19. for l in input_data3:
  20.     if l.isupper() is True:
  21.         print("Input 3 has passed the capitalisation check.")
  22.     if l.isupper is False:
  23.         print("Input 3 has failed the capitalisation check.")
  24.     if else:
  25.         print("Input 3 has skipped the capitalisation check.")
  26. print(bot) #This bot is supposed to check whether you are using capitalisation at the start of your sentences, and if you type something such as a symbol or number it "skips" the check.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement