0% found this document useful (0 votes)
22 views2 pages

Week1 Python AI Basics

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

Week1 Python AI Basics

python basics
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Week 1: Python & AI Basics – Course

Content
Module Overview
- Introduction to AI & Data Science
- Setting up the Environment (Anaconda, Jupyter, VS Code)
- Python Essentials (variables, data types, loops, functions, structures)
- Introduction to Libraries (NumPy, Pandas, Matplotlib)
- Mini Project: Analyze trends in a dataset

Lesson 1: Introduction to AI & Data Science


• What is Artificial Intelligence (AI)?
• Applications of AI in daily life (healthcare, finance, marketing, etc.)
• What is Data Science?
• Importance of Python in AI & Data Science

Lesson 2: Setting up the Environment


• Installing Anaconda (step-by-step screenshots).
• Introduction to Jupyter Notebook.
• Alternative IDEs (VS Code, PyCharm).

Lesson 3: Python Essentials


Topics Covered:

• Variables & Data Types


• Operators (Arithmetic, Logical, Comparison)
• Conditional Statements (if, elif, else)
• Loops (for, while)
• Functions (defining & calling)
• Data Structures (Lists, Tuples, Dictionaries, Sets)

Example Exercises:

1. Write a Python program to check if a number is even or odd.

2. Create a list of 5 fruits and print them using a loop.

3. Write a function that calculates the factorial of a number.


Lesson 4: Introduction to Libraries
• NumPy: Arrays, basic operations.
• Pandas: DataFrames & Series, loading CSV files.
• Matplotlib: Simple plots (line, bar, histogram).

Mini Project: Movie Ratings / Sales Dataset


Objective: Analyze simple dataset trends.

Steps:
1. Load dataset with Pandas.
2. Calculate average ratings/sales.
3. Create a line chart and bar chart with Matplotlib.
4. Write short insights about the trends.

Assignments
1. Write a Python program that generates the multiplication table of any given number.

2. Create a Pandas DataFrame with student names and scores, then calculate the average
score.

3. Plot a histogram of ages (provided dataset).

Learning Outcomes
By the end of Week 1, students will be able to:
- Explain AI & Data Science basics.
- Work with Python variables, loops, functions, and data structures.
- Use Pandas & NumPy for data analysis.
- Create simple visualizations with Matplotlib.
- Complete a data trend analysis mini project.

You might also like