Final Practical
Final Practical
PRACTICAL FILE
ON
CODE:
TO
Flora Institute
BE-F.Y
SESSION -2024-25
SUBMITTED BY
ROLL NO
CERTIFICATE
Remark :
Date:-
Group - A
Perform all operations (Addition, Multiplication,
Subtraction, Division, Module)
1
2 Operation of List & Tuple
3 Concatenate two strings using '+' operator
5 String Operations
Group - B
1 Develop algorithms, draw flow chart, and write a
program to solve electrical network (KVL/KCL) using
python
2 Develop algorithms, draw flow chart, and write a
program for star delta conversion using python
3 Two forces P and Q acting on a body 180 KN and 240
KN respectively. The angle between the two forces
is 60 degrees. Determine the resultant of force P
and Q and it's direction with respect to Q force
4 Assume five liters of Oil weigh 61.80 N. Write a
program to calculate i ) Specific Weight ii) Specific
mass using python.
Hardware Requirements
Processor (CPU) 1 GHz or faster Dual-core or higher (e.g., i5, Ryzen 3+)
RAM 2 GB 4 GB or more
Storage 200 MB for Python installation SSD with 10+ GB free for projects
Software Requirements
Requirement Details
Operating System Windows
Python Version Python 3.x (latest is recommended: 3.10, 3.11, or 3.12)
Python IDE or Editor IDLE (built-in), VS Code, PyCharm,
Package Manager pip (comes with Python)
• Python Interpreter
• Code Editor/IDE:
o VS Code (lightweight, free)
o PyCharm (full-featured, great for big projects)
GROUP A
Q9 PROGRAM IN PYTHON TO DETERMINE WHETHER THE PERSON IS ELIGIBLE FOR VOTE OR NOT
Code:
Output:
Code:
Output:
Enter a number: 7
7 is an odd number.
Code:
class Student:
school_name = " Flora Valley School & Junior College "
s1 = Student()
print("School Name:", s1.school_name)
Output:-
Code :-
Output:-
Enter voltage (V): 12
Enter resistance R1 (Ohms): 4
Enter resistance R2 (Ohms): 2
Output:
The current in the circuit is 2.00 A
Q2. Develop algorithms, draw flow chart, and write a program for star delta conversion using python
Code :-
Output:-
Code :-
import math
P = 180 # in kN
Q = 240 # in kN
theta_deg = 60 # angle in degrees
theta_rad = math.radians(theta_deg)
R = math.sqrt(P**2 + Q**2 + 2 * P * Q * math.cos(theta_rad))
alpha_rad = math.atan2(P * math.sin(theta_rad), Q + P * math.cos(theta_rad))
alpha_deg = math.degrees(alpha_rad)
print(f"Resultant Force (R): {R:.2f} kN")
print(f"Angle with respect to Q: {alpha_deg:.2f} degrees")
Output:-
Q4. Assume five liters of Oil weigh 61.80 N. Write a program to calculate i ) Specific Weight ii) Specific
mass using python.
Code :-
Output:-