0% found this document useful (0 votes)
0 views5 pages

AI_Python_Combined_Revision

The document provides comprehensive revision notes on Python programming and artificial intelligence concepts. It covers key topics such as variables, data types, operators, control flow, the AI project cycle, domains of AI, ethical frameworks, and bioethics principles. Each section includes definitions, examples, and explanations to aid understanding and application.

Uploaded by

poonammorwani11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views5 pages

AI_Python_Combined_Revision

The document provides comprehensive revision notes on Python programming and artificial intelligence concepts. It covers key topics such as variables, data types, operators, control flow, the AI project cycle, domains of AI, ethical frameworks, and bioethics principles. Each section includes definitions, examples, and explanations to aid understanding and application.

Uploaded by

poonammorwani11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Artificial Intelligence Practical Exam - Combined Revision Notes

PYTHON REVISION

1. VARIABLES

- Variables are used to store data values.

Example:

x = 10

name = "AI"

2. DATA TYPES

- int: Whole numbers (e.g., 5)

- float: Decimal numbers (e.g., 3.14)

- str: Text (e.g., "Hello")

- bool: Boolean values (True/False)

- list: [1, 2, 3]

- tuple: (1, 2, 3)

- dict: {"key": "value"}

3. TYPE CONVERSION

- Convert data types using built-in functions:

int("5") => 5

float("2.5") => 2.5

str(100) => "100"

bool(0) => False

4. ARITHMETIC OPERATORS
+ : Addition (3 + 2 = 5)

- : Subtraction (5 - 1 = 4)

* : Multiplication (2 * 3 = 6)

/ : Division (10 / 2 = 5.0)

// : Floor Division (10 // 3 = 3)

% : Modulus (10 % 3 = 1)

** : Exponentiation (2 ** 3 = 8)

5. COMPARISON & LOGICAL OPERATORS

== : Equal to (5 == 5 is True)

!= : Not equal to (5 != 3 is True)

> : Greater than

< : Less than

>= : Greater than or equal to

<= : Less than or equal to

Logical Operators:

and : True if both are True

or : True if one is True

not : Reverses the condition

6. CONTROL FLOW (IF-ELIF-ELSE)

Example:

temp = 25

if temp > 30:

print("Hot")

elif temp >= 20:


print("Warm")

else:

print("Cold")

7. LOOPS

For Loop:

for i in range(1, 4):

print(i)

While Loop:

i=1

while i <= 3:

print(i)

i += 1

Loop Control:

break - exits the loop early

continue - skips current iteration

pass - does nothing


ARTIFICIAL INTELLIGENCE UNIT 1 NOTES

1. AI PROJECT CYCLE

Definition: A step-by-step method to solve real-world problems using AI.

Stages:

- Problem Scoping: Understand and define the problem.

- Data Acquisition: Gather relevant and reliable data.

- Data Exploration: Analyze data using charts, graphs.

- Modelling: Choose the right AI model to solve the problem.

- Evaluation: Test and improve the model using test data.

- Deployment: Use the model in a real-world setting.

2. DOMAINS OF AI

a) Statistical Data: Used for finding patterns (e.g. price comparison websites).

b) Computer Vision: AI understanding visual input like images/videos (e.g. facial recognition).

c) Natural Language Processing (NLP): Machines understand human language (e.g. chatbots,

Google Translate).

3. ETHICAL FRAMEWORKS

Definition: A structured way to ensure AI decisions are fair and unbiased.

Why Needed:

- Prevent bias and discrimination

- Ensure fairness and transparency

Types:

- Sector-Based: Used in industries (e.g. Bioethics in healthcare)

- Value-Based:
- Rights-Based: Focus on human dignity and freedom

- Utility-Based: Focus on maximizing overall benefit

- Virtue-Based: Focus on character and moral values

4. BIOETHICS PRINCIPLES

- Respect for Autonomy: Let users know how AI makes decisions

- Do Not Harm: Avoid harm to users or society

- Beneficence: Maximize benefits

- Justice: Ensure fairness for all

Case Study Example:

- Problem: AI misclassifies patients due to biased training data

- Bioethics helps: ensure data is fair, accurate and unbiased to avoid harm

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy