Python Forum
sys.stdin to do a word count based on user entry
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sys.stdin to do a word count based on user entry
#2
You may try to .strip() any non-printable chars from word,
before you test it. You never know.

Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
RE: sys.stdin to do a word count based on user entry - by DPaul - Jul-19-2020, 09:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to create a menu and execute a function based on user selection in python? Thedarkphoenix 1 1,356 Nov-23-2022, 07:53 PM
Last Post: Larz60+
Question Simulate an answer based on user input [Beginner needs guidance] Bombardini 1 1,326 Nov-12-2022, 03:47 AM
Last Post: deanhystad
  Word count vanjoe198 1 1,997 Mar-16-2021, 12:27 AM
Last Post: BashBedlam
  Changing Directory based on user input paulmerton4pope 13 8,163 Aug-14-2020, 11:48 AM
Last Post: GOTO10
  Writing a function that changes its answer based on user input SirRavenclaw 2 2,861 Dec-21-2019, 09:46 PM
Last Post: Clunk_Head
  count unique letters in a word sunny_awesome 4 8,780 Jun-06-2019, 07:15 PM
Last Post: kotter
  Word based Game of 21 DatNerdKid 2 81,927 Aug-24-2018, 03:25 PM
Last Post: DuaneJack
  Count Letters in a Sentence (without using the Count Function) bhill 3 5,260 Jun-19-2018, 02:52 AM
Last Post: bhill

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020