Chapter 2 :- Children and Women in Sports
PHYSICAL EDUCATION Chapter 2 :- Children and Women in Sports Overview  Chapter 2 :- Children and Women in Sports Q.1 Select the correct alternative and write answer to the following questions :  1. What is principles of management?(A) Result of experience(B) Management decide it(C) Decided by experiments(D) Managers decide it 2. Why does […]
Chapter 2 :- Children and Women in Sports
PHYSICAL EDUCATION Chapter 2 :-Children and Women in Sports Overview WHO exercise guidelines for various age groups. Common postural deformities and their corrective measures. Women in sports: Benefits and challenges. Special considerations like menarche and menstrual dysfunction. Female athlete triad. Chapter 2 :-Children and Women in Sports Exercise Guidelines by WHO. 1. Under 5 Years […]
Chapter -1 Management of Sporting Events
PHYSICAL EDUCATION Chapter -1 Management of Sporting Events Overview This unit provides insights into organizing and managing sports events efficiently. It covers: Functions of event management (Planning, Organizing, Staffing, Directing, and Controlling). Roles of various committees before, during, and after an event. Methods of creating fixtures for tournaments (Knock-Out, League). Differences between Intramural and Extramural […]
Write a Code to update Data in MYSQL from Python.
Class 12th CBSE CS Write a Code to update Data in MYSQL from Python. Solution: – import mysql.connector as cn s = cn.connect( host = “localhost”, user = “root”, passwd = “root”, database = “bank”, auth_plugin=”mysql_native_password”) mycursor = s.cursor() sql = “UPDATE customers SET address = ‘Surat’ WHERE address = ‘Vesu'” mycursor.execute(sql) s.commit() print(mycursor.rowcount, “record(s) […]
Write a Code to Delete and Update Data in MYSQL from Python.Â
Class 12th CBSE CS Write a Code to Delete Data in MYSQL from Python. Solution: – import mysql.connector as cn s = cn.connect( host = “localhost”, user = “root”, passwd = “root”, database = “bank”, auth_plugin=”mysql_native_password”) mycursor = s.cursor() sql = “DELETE FROM bank WHERE address = ‘Vesu'” mycursor.execute(sql) s.commit() print(mycursor.rowcount, “record(s) deleted”) Fun & […]
Write a Code to Insert Data from Python to MYSQL.
Class 12th CBSE CS Write a Code to Insert Data from Python to MYSQL. Solution: –Â import mysql.connector as cn s = cn.connect( host = “localhost”, user = “root”, passwd = “root”, database = “bank”, auth_plugin=”mysql_native_password”) mycursor = s.cursor() sql = “INSERT INTO bank (name, address) VALUES (%s, %s)” val = (“Hardik”, “Althan”) mycursor.execute(sql, val) […]
Write a Code to Connect Python with MYSQL.Â
Class 12th CBSE CS Write a Code to Connect Python with MYSQL. Solution: – import mysql.connector as cn s = cn.connect( host = “localhost”, user = “root”, passwd = “root”, database = “bank”, auth_plugin=”mysql_native_password”) if s.is_connected(): print(“Connected Successfully”) else: print(“Connected Unsuccessfully”) Fun & Easy to follow Works on all devices Your own Pace Super Affordable […]
Write a python program to write student data in a binary file.
Class 12th CBSE CS Write a python program to write student data in a binary file. Solution: – import pickle s={ } file2 = open(‘student.dat’ , ‘wb’) R = int (input (“Enter roll number=“ )) N = input(“Enter name =“ ) M = float(input (“Enter marks =“ ) # add read data into dictionary S […]
Write a function SwapNumbers( ) to swap two numbers and display the numbers before swapping and after swapping.
Class 12th CBSE CS Write a function SwapNumbers( ) to swap two numbers and display the numbers before swapping and after swapping. Solution: –Â def SwapNumbers(a, b): print(“Before swapping: a =”, a, “, b =”, b) a, b = b, a # This is the Pythonic way to swap variables print(“After swapping: a =”, a, […]
Write a Program  to perform Stack Operation.
Class 12th CBSE CS Write a Program  to perform Stack Operation. Solution: – def push(): n = int(input(“Enter the number you want to add in Stack :- “)) stack.append(n) def pop(): if stack ==[]: print(“Stack Underflow”) else: print(stack.pop()) def peep(): if stack ==[]: print(“Stack Underflow”) else: print(stack[-1]) def display(): for i in range(len(stack)-1,-1,-1): print(stack[i]) stack=[] […]