How to find the secret massage? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How to find the secret massage?

goal = "#4F₹&i&₹r¢€s¢¥t" # This is the variable I store. And I wish to remove all special charecters and print only hidden massage 'First'. Is there any one liner code or few coding in python to solve this problem.

11th Feb 2024, 6:58 AM
Manish
1 Réponse
+ 7
Hint: There is inbuild method: string.isalpha() With it you can check each character.
11th Feb 2024, 8:00 AM
JaScript
JaScript - avatar