Detect if the input contains only letters

output 1 if input is only letters.
output 0 if input contains anything that is not a letter.

IN

r7oXpZe9NBPS7Rbj

OUT

0

IN

VJT63NuYxZjIWREu

OUT

0

IN

OhesLuQPHDyztooU

OUT

1

IN

rYUFsCTWJmrmzcNc

OUT

1

IN

AmMtgzklrKQhRZJD

OUT

1

IN

aPorUe3QKaVMJ4v2

OUT

0

IN

rQRHpyydN3MiEoPY

OUT

0

IN

fXUzUsRhqFzZgCGE

OUT

1

IN

fXUzUsRhqFzZgCGE

OUT

1

IN

PbbxRVunfktFvCTa

OUT

1

IN

lRFJEAd4EEv6Gm1k

OUT

0

IN

ltLWCKe5ErPAMX17

OUT

0
Login to submit solution


7 symbols pyth
Sun Apr 1 01:24:26 2018 Sait2000
s!-rz0G
8 symbols pyth
Sun Mar 18 03:58:51 2018 Krimpoche
s<.{rwZG
9 symbols pyth
Sun Mar 18 03:55:46 2018 Krimpoche
*<.{rwZG1
11 symbols pyth
Sun Mar 18 03:54:29 2018 Krimpoche
*<.{rwZ.{G1
12 symbols perl
Mon Feb 19 15:44:31 2018 k-mx
#!/usr/bin/perl -p
$_=0+!/\d/
29 symbols python3
Mon Feb 26 14:48:03 2018 fbroeren
print(int(input().isalpha()))
44 symbols python3
Sun Feb 18 14:05:32 2018 PFischbeck
print(int(all(c.isalpha()for c in input())))
57 symbols haskell
Tue Sep 18 07:27:41 2018 YoshikuniJujo
import Data.Char
main=interact$show.fromEnum.all isLetter

View all solutions