Skip to main content

Posts

GRADE XI - NESTED FOR LOOP

                                                         NESTED FOR LOOP 1. for var1 in range(3):      print(var1,"OUTER LOOP")          # 0 outer loop       1 outer loop      2 outer loop          for var2 in range(2):                  print(var2+1,"INNER LOOP")    #1  2 inner loop     1  2  inner loop   1 2 inner loop  2. Print the following pattern using for loop: 1  1 2  1 2 3  1 2 3 4  Sol: for r in range(1,5):   #ROWS     for c in range(1,r+1):   #COLUMNS         print(c,end=" ")     print() 3. Print the following pattern using for loop: @  @ @  @ @ @...

GRADE XI - FIND THE OUTPUT : LOOPS

                                                  PRACTICE QUESTIONS                                               FIND THE OUTPUT : LOOPS #FIND THE OUTPUT #1. i=0 sum=0 while i<9:     if i%4==0:         sum=sum+i         print("inside loop",sum)         print("inside loop value of i",i)     i=i+2 print(sum) print('**'*40)  #2. x=10 y=0 while x>y:     x=x-4     y+=4 print(x,end=' ') print('**'*40)  #3. p,q=0,2 p=p+q  q=p+4  print(p) print(q) #4. x=10 y=0 while x>y:     print(x,y)     x-=1     y+=1 #5. i=1 while i<=7:     print("i=",i)     i+=1 print("Final i",i) #6. num=30...

XI CS - FOR LOOP PRACTICE QUESTIONS

                                                    FOR LOOP PRACTICE QUESTIONS 1. WAP TO PRINT 10 8 6 4 2 AND SUM OF SERIES  2.   WAP TO PRINT FIRST 20 EVEN NUMBERS AND PRINT THEIR SUM 3.  WAP TO PRINT FACTORIAL OF A GIVEN NUMBER SOLUTION: n=int(input("Enter a number -")) res =1 for i in range(1,n+1):     res *= i print(n," = ",res) 4. WAP TO PRINT EVEN NOS BETWEEN 2 GIVEN NOS 5. WAP TO INPUT NUMBERS & PRINT ITS FACTORS SOLUTION: n = int(input(“Enter a number -”)) for i in range(1,n+1):      if (n%i==0):           print("\t -",i) 6. WAP TO PRINT FIBONACCI  SERIES  : 0  1  1  2  3  5  8.....N TERMS SOLUTION: f, s = 0,1 n = int(input("Enter number of terms-")) print(f, s , sep="\t ", ...

GRADE XII - IP -PROJECT (STUDENT MANAGEMENT SYSTEM)

  PATIENT MANAGEMENT SYSTEM # -*- coding: utf-8 -*- """ Created on Sat Nov 13 20:37:02 2021 @author: Kirti Hora """ import pandas as pd import matplotlib.pyplot as plt def main():   while True:     print("="*60)     print("STUDENT MANAGEMENT")     print("="*60)     print("enter 1 to ADD STUDENT DETAILS")     print("enter 2 to DELETE STUDENT DETAIL")     print("enter 3 to VIEW MAX MARKS")     print("enter 4 to UPDATE STUDENT DETAIL")     print("enter 5 to SEARCH STUDENT")     print("enter 6 to DISPLAY STUDENT DETAILS")     print("enter 7 to STUDENT PERFORMANCE GRAPH")     print("enter 8 to EXIT....")     print("="*60)     d=int(input("enter choice:"))     print("="*60)     if d==1:         add()          elif d==2:         delete()     elif d==3:   ...

COVID ANALYSIS | GRADE XII PROJECT (IP)

  COVID ANALYSIS GRADE XII PROJECT import pandas as pd import matplotlib.pyplot as plt #import numpy as np def showdata() :   df=pd.read_csv(r"D:\GRADE XII PYTHON\covid_19.csv")   print(df)   input("Press any key to continue....") def dataNoIndex():   df=pd.read_csv(r"D:\GRADE XII PYTHON\covid_19.csv",index_col=0)   print(df)   input("Press any key to continue...") def data_sorted():   df=pd.read_csv(r"D:\GRADE XII PYTHON\covid_19.csv")   print(df.sort_values(by=['Confirmed'])) def write_data():   print("Insert data of particular districts in list form:")   di=input("Enter Districts:")   con_cases=eval(input("Enter no. of confirmed cases:"))   rec=eval(input("Enter no. of recovered cases:"))   deaths=eval(input("Enter deaths:"))   active=eval(input("Enter active cases:"))   d={'Districts':[di],'Confirmed':[con_cases],'Recovered':[rec],'Deaths...

IP | CLASS XII RESULT ANALYSIS PROJECT SAMPLE

  # -*- coding: utf-8 -*- """ Created on Sat Jun 19 16:59:58 2021 @author: Kirti Hora """ # CLASS XII RESULT ANALYSIS PROJECT SAMPLE #CSV DATA #File name: result.csv #File location: g:\ import pandas as pd import matplotlib.pyplot as plt # Main Menu while(True):     print("Main Menu")     print("1. Fetch data")     print("2. Dataframe Statistics")     print("3. Display Records")     print("4. Working on Records")     print("5. Working on Columns")     print("6. Search specific row/column")     print("7. Data Visualization")     print("8. Data analystics")     print("9. Exit")     ch=int(input("Enter your choice"))     if ch==1:         result=pd.read_csv("D:\GRADE XII PYTHON/result.csv",index_col=0)              elif ch==2:         while (True):         print("Dataframe ...