Example
Input: aaa34@raj?where454/
Output: 3
s = input() cnt = 0 for i in s: if not (i.isalpha() or i == ' ' or i.isdigit()): cnt+=1 print(cnt)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment