Limit Alphabetic Characters in phyton 3 then Loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Limit Alphabetic Characters in phyton 3 then Loop

how to type Alphabet only in input. then loop. example. while 1: a = input("Name") if (a)<("abcdefghijklmnopqrstuvwxyz"):break else: print("invalid") or import re while 1: a= input("Name") if not re.match("^[A-Za-z]

quot;): break else: print ("invalid") please make me code for that. because when i input: rigel12. it is to be wrong.

1st Mar 2018, 1:03 AM
Rigel Panaligan
Rigel Panaligan - avatar
1 Answer
8th Feb 2022, 3:07 PM
John Young
John Young - avatar