The Knowledge Foundation
Wednesday, 12 November 2025
Python Tutorial: Conditional Statements
Output
2. The else Statement
age = 16
if score >= 90:
Operator Meaning Example
Thursday, 6 November 2025
Python Tutorial : function
Python Tutorial : function
Python is one of the smartest programming language in modern programming world , probably Python contain the most advance libraries among the other programming language. Python is very popular for both backend , frontend and embedded software design and artificial intelligence software design. Python on does not contain only inbuild library , many third party provider several library to support Python for more advance work.
Today, in this tutorial we will learn about function in Python. First we have to learn what is function ?
A function is a block of code that have some specific task and objective , that means when we call a function ,the block code will be executed and it will return some value. The value must may be image, video , interger , string everything.
In other language , function starts and close with opening and closing braket( { }) ,but Python is very smart coding language , it handle opening and closing of the function in a smart way so that the function is compact, length is small.
Here is a smaple function
def HellowWorld():
print("Hello! Welcome to Python functions.")
def → defines the function
HellowWorld → function name
() → parentheses (for parameters)
How to Call function
Sigle Parameter Function
Function Returns Multiple Values
Python can return multiple return values , this is simple and just like same method calling simple function.First you have to write all return variable and then call the functions .There is the simple example
def calculate(a, b):
add = a + b
sub = a - b
return add, sub
Calling :
x, y = calculate(10, 5)
print("Sum:", x)
print("Difference:", y)
Output:
Sum: 15
Difference: 5
Functions Can be called Together
Multiple function can be called together , first call the function which need to call first and then on.Here is the example of the same
def get_input():
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
return a, b
def add(a, b):
return a + b
def main():
x, y = get_input()
result = add(x, y)
print("Sum is:", result)
Calling :main()
Nested Function
Nested function meaning function under a function .Multiple nested function can be nested under a main function.We do not need to call inner function , we just need to call outer function, inner function will be called automatically.
You can return the inner function from the outer function , this is called a closure.
def outer_function():
def inner_function():
print("Hello from inner function!")
return inner_function # returning the function, not calling it
Calling :
greet = outer_function()
greet()
Output:
Hello from inner 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
Python Tutorial: Conditional Statements
Python Tutorial: Conditional Statements Python is a smart language , compare to other programing language python code is so smart that it ma...
-
AngularJS ng-model Directive AngulaJS ng-model Directive bind data with HTML control .HTML control (input,select , textarea) bind with a...
-
বাঙালির বেড়ানো সেরা চারটি ঠিকানা বাঙালি মানে বেড়ানো পাগল | দু একদিন ছুটি পেলো মানে বাঙালি চলল ঘুরতে | সে সমুদ্রই হোক , পাহ...
-
মৌসুমী আইল্যান্ড মৌসুমী আইল্যান্ড খুব সম্প্রতি আত্মপ্রকাশ করেছে পর্যটন কেন্দ্র হিসেবে|...