top of page

Making a JNV student school entering python program


#Program By eboostup.com
'''Making a JNV student school entering program'''
#name dictionary
name_d={1:"ankush",2:"arjun",3:"lavisha",4:"vandana"}
#class dictionary
class_d={"ankush":11,"arjun":11,"lavisha":11,"vandana":11}
#section dictionary
secd={1:"a",2:"a",3:"a",4:"a" }
#rool no. dictionary
roll_d={"ankush":1,"arjun":2,"lavisha":3,"vandana":4}
#name input
name=str(input("Enter Your name: "))
#class input
class1=int(input("Enter Your Class (Ex. 6,7,8,9...): "))
#section input
sec=str(input("Section (Ex. a,b...): "))
#roll no. input
roll1=int(input("Enter Your Roll No.: "))

if name_d[roll1]==name and class_d[name]==class1 and secd[roll1]==sec:
    print("Verified JNV Student")
    
    gender=input("Gender: ")
    if gender=='male':
        print("Go to Boys Hostel")
        print("  Boys Hostel Warden")
        print("  Name=","Ram Karan")
        print("  Phone No.=","9671300001")
    elif gender=="female":
        print("Go to Girls Hostel")
        print("  Girls Hostel Matheran")
        print("  Name=","Paramjeet")
        print("  PhoneNo.= ","9671300002")
    else:
        print("Invalid Gender")
else:
    print("Not Admitted")
    print("You not JNV Student")
print()
print("Powered By eboostup")
#ankushdhingra




Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page