Posts

use of in

  # find the name in the list names=[ "dinesh" , "sonu" , "kamlesh" , "kishan lal" , "pooja" , "hunar" , "rashmi" ] name= input ( "Enter YOur name: " ) if (name in names): print ( "you are the member of family" ) else : print ( "you are not the member of the family" ) #lenght of the character is 10 or not # name=input("Enter YOur name: ") # l= len(name) # if(l<10): # print("You have less then 10 character in your name") # else: # print("Your name has atleast 10 character") # Find that weather a text is a spam or not. # text=input("Enter the text\n") # # if("make a lot of money" in text): # spam=True # elif("buy now" in text): # spam=True # elif("click this" in text): # spam=True # elif("subscribe now" in text): # spam=True # else: # spam=False # # if(spam): # prin...

score card, score card-2, finding greatest

  # score card # max=int(input("Enter the maximum marks of each subject:")) # a= int(input("Enter the marks in English: ")) # b= int(input("Enter the marks in Science: ")) # c= int(input("Enter the marks in Math: ")) # # # # total=a+b+c # max_totaol=max*3 # print("Maximum Marks:", max_totaol) # # print("Total Marks of the student: ",total) # p=(total*100)/max_totaol # print("Percentage: ",p ,"%") # # # cond1=(max*33)/100 # cond2=((max_totaol*40)/100) # # if(a<cond1 or b<cond1 or c<cond1): # print("You have not score the minimum marks in one of the subject") # # elif(total>=cond2): # print("congratulation!! You have passed the examination") # else: # print("sorry You have not passed the examination") # score card-2 max= int ( input ( "Enter the maximum marks of each subject:" )) a= int ( input ( "Enter the marks in English: " )) b= in...