1.py 253 B

12345678910
  1. import os
  2. # Clear screen
  3. os.system("clear") # Mac or Linux
  4. #os.system("cls") # Windows
  5. userInput = input("Input a string: ")
  6. # Use len function to determine length of userInput
  7. print("User input", userInput, "is", len(userInput), "characters long.")