Python using AI
Preparation
- Setup Windows machine via Kamatera
- Server
- Middle East / Petach Tikva
- Microsoft Windows
- 2025_standard 64bit
- Type A
- CPU 4
- RAM 8 Gb
- HD: 30 Gb
- Hourly Billing Cycle
- Connect to it using Remmina Remote Desktop Client (RDP)
- Skip all the setup screens.
- Login to GitHub in the browser.
- Login to Kaggle in the browser.
Evolution of programming
- Transistors:
onoroff. - Logical gates: and/or/not (knitted together).
- we called such an on/off device a
bit. - punch-cards (hole or no-hole)
- 0 and 1 values
- More complex instruction represented by numbers between 0-255 that represented by 8 bits we called a byte. (2^8 = 256).
Assembly. - Languages such as
Cthat can be translated to the lower level instructions using acompiler. - Higher level languages such as
Pythonusing aninterpreter- it is like a simultaneous translator. - Writing human(ish) language -
AI.
- We still need to learn how to talk to it so it will do what we want.
- We need to know what we want.
Checking results
When working with people who, we assume, are intelligent, how can we make sure the do what we want? Check the results but that would be micro-management and a waste of time.
Make them pass tests.
How to check that after upgrade (eg. graduate school or just taking a vacation) or degrading memory they still have it.
- Better instructions.
- Tests.
Installations
- Install VS Code
- Install Git-scm
- Start VS Code
- Setup co-pilot
- open terminal install uv
- Using uv install python
Hello World!
-
Using uv create a new project
-
In VS Code open the folder of the new project
-
As co-pilot to explain it.
-
Create git repository, push it out to github
-
Write a test for it
Rectangle
- Write program to calculate area and circumference of a rectangle
- Write a test for it
- Show debugging.
- Change it to accept the two values on the command line instead of prompting the user.
- Create a GUI for it
Word distance
- Write another program to calculate the distance of two words (Levenshtein).
- Write tests
- Use a module
- But which module?
Drinking age
- Write a program that asks the user of his/her age and tells if the person can legally drink alcohol?
Pie chart
- Create an SVG image of a pie-chart.
- Create the image using Python code
- Use a module to create the image.
Master Mind
Wordle
Data Sources
- CSV
- Excel
- SQL
- Power BI
SQLite
Dowloading data from NCBI
-
Search nucleotids
Analyzing sequences
- Count nucleotide bases
- Count amino acids
Iris dataset
Count Amino Acids
copilot-instructions
Assignments
-
Come up with some interesting problem - a problem that interests you.
-
Describe how do you get the data in a file called README.md
- Input from the user?
- Download?
- etc.?
-
Write a program processing the data.
-
Save all the prompts you wrote.
-
Upload all of that to a public GitHub repository and open an issue on our shared repository.
-
OR Open an issue and share everything in that issue.