alpha check

    0

    0

    Mahendra Kumar

    beginnerstrings

    A Python Program to Check Whether a Character is Alphabet or not

    # take input
    ch = input("Enter any character: ")
    # check charater is alphabet or not
    if((ch>='a' and ch<= 'z') or (ch>='A' and ch<='Z')):
        print(ch, "is an Alphabet.")
    else:
        print(ch, "is not an Alphabet.")
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.