Student_ip_file
Student_ip_file
Patel
th
Class: 11 Science
Roll Number: 4
Batch: 2024-2025
Index
Sr Name of program Page
No. No.
| EmpNM |
| Dhanraj |
| Mahesh |
| Mamta |
2) 2 Columns
mysql> select EmpNM,DEpartment from bemp;
| EmpNM | DEpartment |
| Mahesh | RND |
| Dhanraj | Helper |
| Mamta | Politics |
3) Specific details
1)Entire table
Q3.Student table2
mysql> desc student2;
| Field | Type | Null | Key | Default | Extra |
1)Grade C
| Ank |
| Divya |
2)Games Offered
mysql> select Game from student2;
| Game |
| Tennis |
| Football |
| Cricket |
Python
code:
for i in range(1200,2201,5):
if i % 7==0:
print(i)
output:
1225
1260
1295
1330
1365
1400
1435
1470
1505
1540
1575
1610
1645
1680
1715
1750
1785
1820
1855
1890
1925
1960
1995
2030
2065
2100
2135
2170
Q2. Accept radius of circle and give area
Code:
Output:
Program:
Output:
Enter 1st number: 1999
Enter 2nd number: 1
Sum is 2000
program:
output:
Enter your number: 15
15 is postivie odd
Code:
name=str(input("Enter Name: "))
Class=str(input("Enter Class: "))
age=int(input("Enter Age: "))
list=[name,Class,age]
print(f"Name is {name} of class {Class} and {age} years old")
for i in list:
print(i)
output:
Code:
Q7.Swap 2 variables
Code:
a,b=10,20
print("Before swap ",a," ",b)
a,b=b,a
print("After swap ",a,b)
Output:
Before swap 10 20
After swap 20 10
Q8.Max number out of 3
Code:
Output:
Enter number 1: 10
Enter number 2: 20
Enter number 3: 30
30 is maximum