Gen-AI Developer Classroom notes 23/Mar/2025

Configuring Pytest for Projects in Python Description src/utils/ as the source package (without __init__.py) tests/utils/ for tests pytest for testing pytest-cov for coverage setup.py for editable install .coveragerc for customizing coverage pytest.ini for simplified test config Project Structure my-python-app/ ├── src/ │ └── utils/ │ └── math_utils.py ├── tests/ │ └── utils/ │ └── test_math_utils.py… Continue reading Gen-AI Developer Classroom notes 23/Mar/2025

Gen-AI Developer Classroom notes 22/Mar/2025

Unit Testing Goal of unit testing is to identify as many defects as possible in early stages Unit Testing: We test a unit of code with all possibilities Unit Tests are supposed to be executed after every change by any member of the team to the code. Unit Testing Frameworks Python Standard library has a… Continue reading Gen-AI Developer Classroom notes 22/Mar/2025

Gen-AI Developer Classroom notes 19/Mar/2025

Well known file formats CSV and TSV JSON YAML CSV This is used for tabular data, where each column is seperated by comman TSV (Tab separated) CSV is widely adopted standard Writing CSV files and Reading CSV files in Python Refer Here for python standard libary module csv JSON This is collection of key value… Continue reading Gen-AI Developer Classroom notes 19/Mar/2025

Gen-AI Developer Classroom notes 18/Mar/2025

Python Files Lets play with files with statement in python Refer Here for changes done in inventory Exercise: Rightnow the program reads the inventory.csv and forces you to add an item I have added four todos. Try exploring a new syntax added called match for taking user inputs Explore what is CSV, Json, YAML

Gen-AI Developer Classroom notes 17/Mar/2025

Python Standard Library Exception Handling Refer Here for python errors and exceptions Python Exception Class Hierarchy It revolves try, except and finally block Class Hierarchy Custom Exceptions Refer Here for the article File Handling in Python We have two types of files text files binary files Refer Here for the article To add persistence to… Continue reading Gen-AI Developer Classroom notes 17/Mar/2025

Gen-AI Developer Classroom notes 16/Mar/2025

Dictionary Comprehensions Refer Here for an article on dictionary comprehensions syntax: dictionary = {key: value for vars in iterable} Refer Here for the samples done in the class Anonymous functions: Lambda Lambda Map, Filter and Reduce functions in python Refer Here for some of the samples Python Standard Library Refer Here for official docs. Refer… Continue reading Gen-AI Developer Classroom notes 16/Mar/2025

Gen-AI Developer Classroom notes 15/Mar/2025

Regular Expressions for Text Searching Refer Here for the Programiz Docs and also Refer Here to This article for Tables with meanings of meta characters Find regular expressions for email id url domain name us phone numbers indian phone numbers Python re methods Here is a table summarizing the key methods of the re module… Continue reading Gen-AI Developer Classroom notes 15/Mar/2025

Gen-AI Developer Classroom notes 13/Mar/2025

Method types in classes Classes have three types of methods instance methods: These can modify instance variables (self.age = age). They generally have self has first argument class methods: These can modify class variables. class variables are shared across all instances. static methods: These methods have nothing to do with class or instance methods or… Continue reading Gen-AI Developer Classroom notes 13/Mar/2025

Gen-AI Developer Classroom notes 12/Mar/2025

Duck Typing in Python Duck typing is based on the idea that if something looks, swims, and quacks like a duck, then it’s probably a duck. Traditional approach Abstract classes in Python Refer Here Protocol removes the need for explicit inheritance and gives interface like functionality Type Hinting Refer Here for types

Gen-AI Developer Classroom notes 09/Mar/2025

Inheritence Watch classroom recording where we start for design a class to create bus booking and inheritence helped in scaling this to any booking. Refer Here for inheritence example Refer Here for inheritence examples Refer Here for inheritence example done in the class. In python we have a class called as object which is base… Continue reading Gen-AI Developer Classroom notes 09/Mar/2025

Gen-AI Developer Classroom notes 08/Mar/2025

Object Oriented Programming Refer Here for an article on OOP from Real python. We are asked to build a software for online bus ticket booking system Requirements Gathered with the help of Gemini Absolutely! Here’s a breakdown of requirements for building an online bus ticket booking system that operates exclusively within a web browser: I.… Continue reading Gen-AI Developer Classroom notes 08/Mar/2025

Gen-AI Developer Classroom notes 05/Mar/2025

Module Module in python is a file i.e. every .py file is a module Module consits of variables methods classes Modules can be used in two ways executable library Refer Here from Programiz :imp: Dunder in python dunder (double underscore) around anything in python has a special meaning predefined dunder methods or members are also… Continue reading Gen-AI Developer Classroom notes 05/Mar/2025

Gen-AI Developer Classroom notes 25/Feb/2025

Python Python is dynamically typed language Python language has standard library which is referred as batteries included This standard library has lots of functions, functionalities which we can readily use. I would be referring them as builtins Some of them which we are going to use are print type id To demonstrate multiple functionalities, i… Continue reading Gen-AI Developer Classroom notes 25/Feb/2025

Gen AI Classroom Notes – 14/02/2025

# How LLMS Work * To understand this we need to understand     * Transformer     * Attention * Temperature: Temparature of llm models make word prediction creative * Attention “` “` * Word Embeddings: These are all the words, these words are represented as vector in high dimensional space * Prompt:  … Continue reading Gen AI Classroom Notes – 14/02/2025

Gen AI Classroom Notes -13/02/2025

# How Neural Networks work * Every nueron has an activation function and synapses have weights * To simplify lets think of a neural network for making a decision whether to hire an employee or not * Lets consider three weights     * experince = 0.6     * skills = 0.3    … Continue reading Gen AI Classroom Notes -13/02/2025