The Knowledge Foundation
Thursday, 6 November 2025
Python Tutorial : function
def HellowWorld():
Function Returns Multiple Values
print("Sum:", x)
Functions Can be called Together
Nested Function
You can return the inner function from the outer function , this is called a closure.
def outer_function():
Monday, 27 October 2025
Python Tutorial : Loop
Python Tutorial : Loop
Python is one of the popular language programming language , Python are very popular since 1980 for its simplicity , easy of learning and code under stability for both beginner and professional level . Python code are smart , need less code compared to other programming language and syntax are easy to understand. Lot of Inbuild library are integrated with Python for different work , other than that many third party libraries specially for Artificial Intelligence model training third party libraries are very popular .
In this article we will learn about "loop" , what is loop ? loop is nothing but approach for examination of every object , for example a string "This is a python code" , if i need every character of this string , I need to use "loop", "loop" will return every character unless there is any stopping condition . Python support two kind of loop , "for loop" and "While" loop , both are very popular in this days.
for loop — iterates over a sequence (like list, tuple, dictionary, string)
while loop — runs as long as a condition is True
Example of for loop
Example 1
fruits = ["apple", "banana", "mango"]
for fruit in fruits:
print(fruit)
output
apple
banana
mango
Example 2
for letter in "Python":
print(letter)
output
P
y
t
h
o
n
Example of while loop
Example 1
count = 1
while count <= 5:
print("Count:", count)
count += 1
output
Some More Topic about Loop:
- break
- continue
- pass
- else with loops
- Nested loops
1.break : Break statement break loop for a particular conditions .Loop stops iterating when it reach to break statement.
Example 1
for i in range(10):
if i == 5:
break
print(i)
output
0 1 2 3 4
2.continue :continue statement skips the current iteration , that means if any condition satisfy ,loop will bypass the condition.
Example 1
for i in range(10): if i % 2 == 0: continue print(i)
output
1 3 5 7 9
3.pass : pass do nothing , simple tell the program to do the next work
Example 1
for i in range(5): passprint("Loop finished!")
output
Loop finished!
4.else with loops : We can write if else condition withing the loop , if condition satisfied do one thing else do another thing.
Example 1
word = "Python"for ch in word: if ch.lower() in ['a', 'e', 'i', 'o', 'u']: print(ch, "is a vowel") else: print(ch, "is a consonant")
output
P is a consonant
y is a consonant
t is a consonant
h is a consonant
o is a vowel
n is a consonant
5.Nested loops : A loop can be under another loop , may be for loop under for loop or for loop under while loop etc.
Example 1
for i in range(1, 6):
for j in range(1, 6):
print(i * j, end="\t")
print()
output
Example 2
i = 1
while i <= 3:
j = 1
while j <= 3:
print(f"i={i}, j={j}")
j += 1
i += 1
output
i=1, j=1
i=1, j=2
i=1, j=3
i=2, j=1
i=2, j=2
i=2, j=3
i=3, j=1
i=3, j=2
i=3, j=3
Backward Looping :Pyhon loop can be reverse direction also using reversed()
for i in reversed(range(1, 6)): print(i)
Add an else Clause to a Loop :Very Unique feature which is not available in other programming language
for i in range(5):
print(i)
else:
print("Loop finished without break!")
Looping Over Multiple Sequences Together
names = ["Ayan", "Riya", "Rohan"]
scores = [85, 92, 78]
for n, s in zip(names, scores):
print(n, "scored", s)
output
Ayan scored 85
Riya scored 92
Rohan scored 78
Wednesday, 22 October 2025
Python Tutorial : Variable
Python Tutorial : Variable
Python is one of the very popular programming language , it is beginner-friendly as well as professional-friendly and easy to understand .The first concepts every learner must understand is the variable.
A variable is identified by name , variable store
value in memory. In Python , variables store data , this data can be used or
can be manipulated later. Python does not require to declare a variable type
explicitly before assignment , it can be declared and assign dynamically.
Here is the example of variable
x = 10
y = "Hello World"
A variable is a musk like
a container that holds data. If we write x = 5
python creates an object with the value 5 and a
reference x that points to this object , then
x is not the value , x is a name pointing to the memory
location stored location.
|
int |
--> Integer (full number or number with point) , |
|
x = 5 |
|
|
float--> |
Decimal number(number with point) |
, pi = 3.14 |
|
str--> |
String (text) ,name = "Hellow World" |
|
- No need to declare types manually , development is fast.
- Variables can change any type of data during runtime.
- Clean and simple.
Friday, 10 October 2025
Python Tutorial : Introduction
Python is very popular programming languages . Python Created by Guido van Rossum and first released in 1991. Python is simple, readable, and powerful .It is an open-source, high-level language .Python’s syntax is clean and very easy to understand, it is suitable for beginners as well as working professionals .
Python Supports:
- Web development
- Data science
- Artificial Intelligence
- Machine Learning
- Automation
Why to Learn Python
1) Python’s syntax is simple , it is beginner-friendly and easy to understand .Easy to understand in compare with other languages like C++ or Java.
2) No compilation require compilation. The interpreter reads and executes , make it more faster, rather fastest language.
3) Python runs on Windows, macOS, Linux, and mobile OS , almost all platform , i.e Python is cross platform language.
4) Python is free to use and opensource, no license charge is required. it comes under governed under an open-source license.
5) Python have huge in-built library for file handling, regular expressions, database connectivity, web services, mathematics etc.
6) Python supports Object-Oriented Programming (OOP) , i.e classes, inheritance, encapsulation, and polymorphism etc.
7) Python is High-Level Language ,no need to handle memory management or pointer programming.
8) Python code can be 'embedded' into other languages (like C or C++) and other languages (like C or C++) can be embedded in Python.
9) Python’s community support is large , external libraries
- NumPy and Pandas for data science
- TensorFlow and PyTorch for AI and ML
- Matplotlib for data visualization
10) Python in-built 'garbage collector' handles memory allocation and deallocation.
Major Applications of Python
Web Development :Django , Flask , FastAPI framework for used for API to create dynamic website.
Instagram, Pinterest, and YouTube use Python for their backend service of these frame work to make their websitedynamic.
Artificial Intelligence (AI) and Machine Learning (ML)
Python is the most popular language for Artificial Intelligence and Machine Learning.libraries like TensorFlow , Keras, Scikit-learn, PyTorch works to handle AI,ML application.
Applications :- Image and speech recognition
- Chatbots
- virtual assistants
- Visual Matching
Desktop GUI ApplicationsPython’s Tkinter, PyQt, and Kivy libraries create desktop applications.
Examples:- Media players
- File managers
- Custom software tools
Game DevelopmentPython frameworks Pygame and Panda3D is used for 2D and 3D game development.Popular games like 'Eve Online' and 'Battlefield 2' have used Python in major.
Mobile App DevelopmentKivy ,BeeWare are used for cross-platform mobile app development.
Cybersecurity and Ethical Hacking
Python is used in cybersecurity for- Network scanning
- Malware analysis
- Packet sniffing
Data Science and Data Analytics
libraries like NumPy , Pandas , Matplotlib , Seaborn , Jupyter Notebook is used in Data Science and Data Analytics.
Example :- Market analysis
- Business intelligence
- Scientific data visualization
Some Well Known Python Applications- Google Search Engine
- Instagram Backend
- YouTube Recommendations
- NASA Software Systems
- Financial Forecasting Models
First Python Program1) Open a text editor ,write
print("Hello, World!")
and Save it as hello.py
2)Run the Program
python hello.py
output isHello, World!
If you do not have python installed at your computerFor Windows download from : https://www.python.org/downloads/windows/and install.
if you are using Linux , run the following program in the terminalsudo apt updatesudo apt install python3
After installation , you can check version aspython --version
Python is very popular programming languages . Python Created by Guido van Rossum and first released in 1991. Python is simple, readable, and powerful .It is an open-source, high-level language .Python’s syntax is clean and very easy to understand, it is suitable for beginners as well as working professionals .
Python Supports:
- Web development
- Data science
- Artificial Intelligence
- Machine Learning
- Automation
Why to Learn Python
1) Python’s syntax is simple , it is beginner-friendly and easy to understand .Easy to understand in compare with other languages like C++ or Java.
2) No compilation require compilation. The interpreter reads and executes , make it more faster, rather fastest language.
3) Python runs on Windows, macOS, Linux, and mobile OS , almost all platform , i.e Python is cross platform language.
4) Python is free to use and opensource, no license charge is required. it comes under governed under an open-source license.
5) Python have huge in-built library for file handling, regular expressions, database connectivity, web services, mathematics etc.
6) Python supports Object-Oriented Programming (OOP) , i.e classes, inheritance, encapsulation, and polymorphism etc.
7) Python is High-Level Language ,no need to handle memory management or pointer programming.
8) Python code can be 'embedded' into other languages (like C or C++) and other languages (like C or C++) can be embedded in Python.
9) Python’s community support is large , external libraries
- NumPy and Pandas for data science
- TensorFlow and PyTorch for AI and ML
- Matplotlib for data visualization
10) Python in-built 'garbage collector' handles memory allocation and deallocation.
Major Applications of Python
Web Development :Django , Flask , FastAPI framework for used for API to create dynamic website.
Instagram, Pinterest, and YouTube use Python for their backend service of these frame work to make their websitedynamic.
Artificial Intelligence (AI) and Machine Learning (ML)
Python is the most popular language for Artificial Intelligence and Machine Learning.libraries like TensorFlow , Keras, Scikit-learn, PyTorch works to handle AI,ML application.
Applications :- Image and speech recognition
- Chatbots
- virtual assistants
- Visual Matching
Desktop GUI ApplicationsPython’s Tkinter, PyQt, and Kivy libraries create desktop applications.
Examples:- Media players
- File managers
- Custom software tools
Game DevelopmentPython frameworks Pygame and Panda3D is used for 2D and 3D game development.Popular games like 'Eve Online' and 'Battlefield 2' have used Python in major.
Mobile App DevelopmentKivy ,BeeWare are used for cross-platform mobile app development.
Cybersecurity and Ethical Hacking
Python is used in cybersecurity for- Network scanning
- Malware analysis
- Packet sniffing
Data Science and Data Analytics
libraries like NumPy , Pandas , Matplotlib , Seaborn , Jupyter Notebook is used in Data Science and Data Analytics.
Example :- Market analysis
- Business intelligence
- Scientific data visualization
Some Well Known Python Applications- Google Search Engine
- Instagram Backend
- YouTube Recommendations
- NASA Software Systems
- Financial Forecasting Models
First Python Program1) Open a text editor ,write
print("Hello, World!")
and Save it as hello.py
2)Run the Program
python hello.py
output isHello, World!
If you do not have python installed at your computerFor Windows download from : https://www.python.org/downloads/windows/and install.
if you are using Linux , run the following program in the terminalsudo apt updatesudo apt install python3
After installation , you can check version aspython --version
2) No compilation require compilation. The interpreter reads and executes , make it more faster, rather fastest language.
3) Python runs on Windows, macOS, Linux, and mobile OS , almost all platform , i.e Python is cross platform language.
4) Python is free to use and opensource, no license charge is required. it comes under governed under an open-source license.
5) Python have huge in-built library for file handling, regular expressions, database connectivity, web services, mathematics etc.
6) Python supports Object-Oriented Programming (OOP) , i.e classes, inheritance, encapsulation, and polymorphism etc.
7) Python is High-Level Language ,no need to handle memory management or pointer programming.
8) Python code can be 'embedded' into other languages (like C or C++) and other languages (like C or C++) can be embedded in Python.
9) Python’s community support is large , external libraries
- NumPy and Pandas for data science
- TensorFlow and PyTorch for AI and ML
- Matplotlib for data visualization
- Image and speech recognition
- Chatbots
- virtual assistants
- Visual Matching
- Media players
- File managers
- Custom software tools
- Network scanning
- Malware analysis
- Packet sniffing
- Market analysis
- Business intelligence
- Scientific data visualization
- Google Search Engine
- Instagram Backend
- YouTube Recommendations
- NASA Software Systems
- Financial Forecasting Models
Monday, 6 October 2025
Entrepreneur & Intrapreneur & Entrepreneurship
Entrepreneur & Intrapreneur & Entrepreneurship
An Entrepreneur is a person who start a new organisation in terms of business , entrepreneur got a new in idea from is inner soul and try to established an organisation with profitable perspective. Entrepreneur generally takes a huge financial risk to make their idea established before the world. Entrepreneur have different mind set , they thinks different , they think advanced. Entrepreneur find opportunity where society cannot imagine a business area.
Entrepreneur is a zeal to do something new , service , work ,development , innovation or anything of doing it business. Entrepreneurs task a huge financial risk and they work hard to reach the goal. Entrepreneur faces different problem in terms of bureaucracy, society , technical and managerial, but they has the capability to solve the each problem effectively.
Some of the great Entrepreneur is
Ratan Tata : who expand Tata Group into multiple industries
Steve Jobs : who founded apple and revolution in smartphone
Elon Musk : founder of SpaceX.
Some basic characteristics of an Entrepreneur
>>Entrepreneur generally innovation thinker with new idea and new concept before the world.
>> Entrepreneur takes huge risk to implement their idea without guarantee of success.
>>Entrepreneur are great leader , they lead the team and identify the problem and make a clear solution to reach the gold.
>>Entrepreneur motivate themselves , they are self dependent, they are not dependent on other organisation
>>Entrepreneur are very hard working and persistent on their work and does not give up if the face any problem.
>>Entrepreneur change them self with the changing of technology and advancement of the human civilisation an adaptation of technical advancement.
Intrapreneur is a person who start in new idea within an organisation , not as an entrepreneur. Intrapreneur work under a huge organisation and gives new idea , new new business plan to the organisation in terms of product ,service or anything related to business. They also an innovation thinker but work as a employee , they do start a new project or new idea without being told by management to him. Intrapreneur do research within the organisation on his idea , he takes the fund from the company and every facility from the company.Intrapreneur also problem solver , they face challenge one new idea and solve the problem effectively in a new way , but not like an Entrepreneur who independently start a new business. Intrapreneur is just an employee of the organisation, who work for growth of organisation ,not for himself .Think about Gmail , Gmail creator was employee of Google , he created Gmail for Google but not for himself so he is an Intrapreneur.
Entrepreneurship is an process of creating a new business or organisation .Entrepreneurship is nothing but the act done by an entrepreneur ,this make employment generation , business establishment in this process idea is generated clearly and implemented in well manage. This is an risky process and must have ability to face land ,labour, capital and technology effectively.This steps helps to progress economy of a society , this phase established a new organisation.
Friday, 3 October 2025
Project Management Lifecycle
Project Management Lifecycle
Project Management is a tecnique to manage project effectively , that ensure the project objectives are met within scope,time,budget.Project Management Lifecycle (PMLC) create a systematic path to achive project goals.Project Management Lifecycle (PMLC) breaks down a project task into well-defined phases,each phase have some task that allow managers to monitor progress, allocate resources, and estimate risks at every phase of projects.
The lifecycle consists of five phases: Initiation, Planning, Execution, Monitoring , Controlling, and Closing.Each step has its separate role and significance.
Project Initiation Phase
The first and most critical phase ,here objectives are define first.Establish the purpose of the project and Identify expected outcomes and success probablitiy.
Example: A software company defining the goal of building an Patroll Software for a large Organisation.
Then Feasibility Study is done , cost-benefit analysis conducted ,technology, manpower, and budget is considered,risks is also calculated.Assign a qualified professional who will lead and communicate across teams (Project Manager).
Stakeholders (clients, sponsors, team, end-users) is also assigned in this phase.
Project Charter (objectives, scope, constraints, assumptions, stakeholders) is developed in this phase.
Project Planning Phase
This is the most critical and detailed phase of project management.
Define Scope
Create a Scope Statement that describes project boundaries.create a proper Work Breakdown Structure (WBS) to do the work into manageable tasks.
Develop Project Plan
Create a Project Management Plan covering schedule, cost, communication, risk, quality, and resources.
Budgeting & Cost Estimation
Estimate costs for resources, technology, licenses, and overhead.
Prepare a budget for monitoring expenses.
Schedule Development
Tools like Gantt Charts, PERT Charts, or Critical Path Method (CPM) is used to develop Schedule Development.
Resource Allocation
Identify team members, assign task and responsibilities.
Risk Management Planning
Calculate potential risks (technical, financial, environmental).
Quality Management Plan
Define quality control strategy.
Project Execution Phase
In this phase project is executed , that means work is performed, and deliverables like are created.
Team Mobilization
Assign roles and responsibilities formally and make sure that the team understands objectives and milestones.
Task Execution
Carry out project tasks as per the WBS and schedule.
Develop deliverables like output.
Resource Utilization
Allocate and monitor resources effectively to achive optimum output.
Communication & Collaboration
Have open communication across teams to remove any barrier and hasitation.
Tools like Slack, Trello, Jira are suitable for this phase.
Project Monitoring & Controlling Phase
- Cost variance (CV), Schedule variance (SV).
- Resource utilization efficiency.
- Quality defect rates.
- Monitor risk and maintain risk register.
- Prevent scope creep.
- Corrective Actions if required (schedule, cost, or resource) , any adjustment is necessary.
Project Closing Phase
- Deliverable Handover
- Transfer final products to the client.
- Compile project reports, risk registers, test reports, and financial statements.
- Release team members for new assignments.
- Identify successes, failures, and areas of improvement.
- Formal Closure
Thursday, 25 September 2025
Critical Path Method (CPM)
Critical Path Method (CPM)
Critical Path Method(CPM) is a project management technique that identifies the longest path of tasks in a project ,this longest path determines the project duration.Critical Path Method(CPM) was developed in about 1950 for large, complex industrial projects,construction & IT projects. It is deterministic , that means assumes known task times.Where PERT is Probabilistic CPM is deterministic.CPM mainly focuses on time, not cost (cost can be added).
What are Advantage of Critical Path Method(CPM)
1) Produced clear project timeline.
2) Helps prioritize important tasks.
3) Improves resource allocation.
4) Supports cost-time trade-offs (crashing).
5) Enhances control on projects.
6) Enhance accountability of teams.
Limitations
1)Assumes fixed activity duration.
2)Less effective with uncertain estimates.
3)Network diagrams may become too complex.
4)Requires frequent updating.
5)Doesn’t directly handle resource constraints.
6)Can give misleading results if inputs are wrong.
7)Time-consuming for very large projects.
Terminology
- Activities = tasks in a project.
- Events = milestones marking task completion.
- Duration = estimated time to finish a task.
- Dependencies = order in which tasks must be done.
- Network diagram = visual representation of activities.
- Nodes = represent tasks/events.
- Arrows = represent dependencies.
- Path = sequence of activities from start to end.
- Critical path = longest path (in time).
- Non-critical paths = shorter paths with slack.
Here is a simple math on CPM
For A missible projects , here is the breatdown
Activity A : duration 4, start activity
Activity B : duration 3, depends on A
Activity C : duration 2, depends on A
Activity D : duration 5, depends on B
Activity E : duration 6, depends on C
Activity F : duration 2, depends on D and E (finish activity)
Forward pass — compute ES (Earliest Start) and EF (Earliest Finish)
ES of first activity = 0;
EF = ES + duration;
for an activity with multiple predecessors, ES = max(EF of predecessors).
Activity A: ES = 0 → EF = 0 + 4 = 4
Activity B: ES = EF(A) = 4 → EF = 4 + 3 = 7
Activity C: ES = EF(A) = 4 → EF = 4 + 2 = 6
Activity D: ES = EF(B) = 7 → EF = 7 + 5 = 12
Activity E: ES = EF(C) = 6 → EF = 6 + 6 = 12
Activity F: ES = max(EF(D), EF(E)) = max(12,12) = 12 → EF = 12 + 2 = 14
Project duration = EF(F) = 14 time units
Backward pass — compute LF (Latest Finish) and LS (Latest Start)
Activity D: successor is F (LS_F = 12) → LF_D = 12 → LS_D = 12 − 5 = 7
Activity E: successor is F (LS_F = 12) → LF_E = 12 → LS_E = 12 − 6 = 6
Activity B: successor is D (LS_D = 7) → LF_B = 7 → LS_B = 7 − 3 = 4
Activity C: successor is E (LS_E = 6) → LF_C = 6 → LS_C = 6 − 2 = 4
Activity A: successors B and C have LS 4 and 4 → LF_A = min(4,4) = 4 → LS_A = 4 − 4 = 0
Slack
| Activity | Dur | ES | EF | LS | LF | Float |
|---|---|---|---|---|---|---|
| A | 4 | 0 | 4 | 0 | 4 | 0 |
| B | 3 | 4 | 7 | 4 | 7 | 0 |
| C | 2 | 4 | 6 | 4 | 6 | 0 |
| D | 5 | 7 | 12 | 7 | 12 | 0 |
| E | 6 | 6 | 12 | 6 | 12 | 0 |
| F | 2 | 12 | 14 | 12 | 14 | 0 |
Critical path(s)
Path 1: A → B → D → F (4 + 3 + 5 + 2 = 14)
Path 2: A → C → E → F (4 + 2 + 6 + 2 = 14)
Python Tutorial : function
Python Tutorial : function Python is one of the smartest programming language in modern programming world , probably Python contain the mos...
-
AngularJS ng-model Directive AngulaJS ng-model Directive bind data with HTML control .HTML control (input,select , textarea) bind with a...
-
বাঙালির বেড়ানো সেরা চারটি ঠিকানা বাঙালি মানে বেড়ানো পাগল | দু একদিন ছুটি পেলো মানে বাঙালি চলল ঘুরতে | সে সমুদ্রই হোক , পাহ...
-
মৌসুমী আইল্যান্ড মৌসুমী আইল্যান্ড খুব সম্প্রতি আত্মপ্রকাশ করেছে পর্যটন কেন্দ্র হিসেবে|...
