Voting Eligibility of a person & Calculating their name No. using if/else in Python
a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26
name=input('Enter your name:\n')
print('Welcome Mr./Mrs.',name)
age=int(input('Enter your age:'))
if(age<18):
print("You cannot vote.")
if(age>=18):
print("You can vote")
print('\nNow calculate your Name number by following below rules:-')
print('\t1.Put + sign')
print('\t2.No spaces')
print('\t3.Only use cursive letters')
print("\tEg.r+a+j,\n")
name_no=print("Type your name below:-")
Comments
Post a Comment