Advertisement
KodingKid

How to make a character-limiter in Python - Basic Scripting #41

Nov 9th, 2021
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. message = input()
  2. charlimit = len(input())
  3. if (charlimit > 100):
  4.     print("Sorry, your message is too long.")
  5. if (charlimit < 100 or charlimit == 100):
  6.     print(message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement