Computer Science, asked by ks2572018, 9 months ago

Given a line of text as input, output the number of characters excluding spaces, periods, or commas. You may assume that the input string will not exceed 50 characters.

Answers

Answered by mdazamfaizy
1

>>> full_name = input("Please enter in a full name: ")

Please enter in a full name: john smith

>>> len(full_name) - full_name.count(' ')

9

>>> len(full_name)

Similar questions