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. ๐Ÿ“

NPTEL Python Week 10: Check for Special Characters
Ultimate Gamer
4.2K views โ€ข Sep 30, 2019
NPTEL Python Week 10: Check for Special Characters

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

Video Information

Views

4.2K

Likes

19

Duration

1:02

Published

Sep 30, 2019

User Reviews

4.0
(4)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.

Trending Now