name = input("Enter your name: ")
pan = input("Enter your PAN card number: ")

if name.isalpha() and pan.isalpha():
    print("Name and PAN card number are valid.")
else:
    print("Invalid input.")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: