NPTEL Python Week 10: Check for Special Characters
Learn to determine if a string contains special characters in Python. Print 'YES' or 'NO' based on the check. ๐

Ultimate Gamer
4.2K views โข Sep 30, 2019

About this video
Given a string S, check whether it contains any special character or not. Print 'YES' if it does else 'NO'.
Input Format:
The first line contains the string S
Output Format:
Print 'YES' or 'NO'
Example:
Input:
Hi$my*name
Output:
YES
Input Format:
The first line contains the string S
Output Format:
Print 'YES' or 'NO'
Example:
Input:
Hi$my*name
Output:
YES
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
4.2K
Likes
19
Duration
1:02
Published
Sep 30, 2019
User Reviews
4.0
(4) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now