Posts

Rushi's Project

  print("This is a program  to find classmate's name according to their roll no.") name=input("Enter your name:\n")         #User's name print("Hello "+name+", Welcome to this program.\n\n") classmates={"1":"Aliza\n Female \n CS~Bio",       #Dictionary             "2":"Haney\n Female\n CS~Bio",             "3":"Om\n Gender ERROR\n Subject ERROR",             "4":"Diraq\n Male\n CS~Maths",             "5":"Dhruv\n Male\n CS~Bio",             "6":"Rushi\n Male\n CS~Maths",             "7":"Rutva\n Female\n CS~Maths",             "8":"Dweep\n Male\n CS~Maths",             "9":"Tanisha\n Female\n CS~Bio",             "10":"Taniya\n Female\n CS~Bio",       ...

Questions on Conjunctions(English Grammer) by using string methods

  print("This programs contains some questions on Conjuction(Engish Grammer).Fill the below details to attempt the followng test.\n") name=input('Enter your name:\n') location={"Diu":"South_West-Gujarat",           'Kachh':'Upper-Gujarat',           'Bharuch':'South-Gujarat',           'Baroda':'Middle-Gujarat'} print("Options are:",location.keys()) a=input('Enter your location:\n',) print("Your location:",location.get(a))     #Entering Users location print("\n\nDetermine the conjuctions used in the sentences and break the sentence in 2 parts:-") Q1=("I am alone but they are many.") print(Q1)                                   #Question1 A1=(Q1.partition(input('Enter conjucton:\n'))) print(A1)  print("Correct ans: ",Q1.partition('but'))                  ...

Some Questions and Answers using Lists in Python.

  User_name=input('Enter your name,User:')                                                                       #Welcoming Statement print("Welcome dear "+User_name+"\n\n1.Please guess the following patterns and check their answers below.") Question_1=['_','25','125','625']                                                               #Question1 print(Question_1) Question_2=['7','21','35','49','_','77','91','_','119'] print(Question_2)                                                             ...

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:-")

Python coding to write an letter in which user can change NAME.(String methods)

  print("Q.    Rewrite he following letter in which user can change 'Name' ; and write it in proper manner.\n ") print("Number 46,Marconi Street,Holland,") print("Hello there,This letter is for NAME") print("I am here to tell you about the program that the manager of our street") print("is going to held it by tommorow.If you are going to particiapate in this program please reply") print("back on this letter with 'YES'. Program is going to held on25November. Thank You.\n\n") print("Ans.  Here is the letter how it should look like:-\n")               #Answer starts from here letter='''Number 46,                                                                                                ...