Answered step by step
Verified Expert Solution
Question
1 Approved Answer
D2L As W HI htt htt zy Se PDE 4. Se X C D2L 2- ht D2L Re| E Sp| https://learn.zybooks.com/zybook/IT-140-X4788-OL-TRAD-UG.22EW4/chapter/4/section/14 =zyBooks My library
D2L As W HI htt htt zy Se PDE 4. Se X C D2L 2- ht D2L Re| E Sp| https://learn.zybooks.com/zybook/IT-140-X4788-OL-TRAD-UG.22EW4/chapter/4/section/14 =zyBooks My library > IT 140: Introduction to Scripting home > 4.14: LAB: Count input length without spaces, periods, or commas H Type here to search Help/FAQ David Dimare-Messier De Cc 4.1 Popy E P|se|ge|na| NA NA Sy Py + Al EzyBooks catalog Total score: 7/10 Download this submission 3/3 Latest submission - 9:12 PM EDT on 03/27/22 Only show failing tests 1: Compare output ^ Input Listen, Mr. Jones, calm down. Your output 21 2: Compare output ^ Output differs. See highlights below. Input Howdy! Your output 5 Expected output 6 0/3 2/2 3: Compare output ^ Input abcd,, efgh....ijkl Your output 12 4: Compare output ^ Input ' Your output 0 o Ei W 2/2 Feedback? 36F ^ (4) 9:58 PM 3/27/2022 Help/FAQ David Dimare-Messier D2L As W HI htt htt zy Se PDE 4. Se X C D2L 2- ht D2L Re| E Sp| https://learn.zybooks.com/zybook/IT-140-X4788-OL-TRAD-UG.22EW4/chapter/4/section/14 De Cc 4.1 Popy E P|se|ge|na| NA NA Sy Py + Al zyBooks catalog =zyBooks My library > IT 140: Introduction to Scripting home > 4.14: LAB: Count input length without spaces, periods, or commas Ex: If the input is: Listen, Mr. Jones, calm down. the output is: 21 H Type here to search Note: Account for all characters that aren't spaces, periods, or commas (Ex: "r", "2", "!"). 387548.2550658.xzzy7 LAB ACTIVITY 4.14.1: LAB: Count input length without spaces, periods, or commas 1 user_text = input() 2 3 num_chars = 0 4 5 for i in user_text: 6 if i.isalpha(): 7 8 num_chars += 1 9 print(num_chars) main.py 7/10 Load default template... Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box. Enter program input (optional) Listen, Mr. Jones, calm down. Run program Input (from above) main.py (Your program) Output (shown below) Program output displayed here 21 PC W 36F ^ (4) 9:58 PM 3/27/2022
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started