AI
Programming for Students
Practical, friendly, and hands-on tutorials to get you building intelligent projects — even if you’re new to coding.
Who this is for
High school and university students, beginners, and anyone starting their journey into programming & AI. No prior experience required.
What you’ll learn
- Python basics (variables, control flow, functions)
- Working with data using Pandas and NumPy
- Visualizing results with Matplotlib
- Intro to Machine Learning with Scikit-learn
- Building simple web apps with Streamlit or Flask
Lesson structure
Each lesson includes a short explanation, a code example you can run, and a mini exercise to test your skills.
- Concept explained in plain language
- Step-by-step code walkthrough
- Mini project or exercise
- Further reading & resources
Quick starter: Python example
Copy & paste this into a file named hello.py and run with python hello.py.
# hello.py
name = input("What's your name? ")
print(f"Hello, {name}! Welcome to AI-InsightLab's programming lessons.")
# small math: mean of a list
nums = [4, 8, 15, 16, 23, 42]
mean = sum(nums) / len(nums)
print('Mean =', mean)
Exercise 1: Modify the program to ask the user for a list of numbers (comma-separated) and print the mean and median.
Mini project idea (for beginners)
Create a simple “Study Tracker” app using Streamlit that logs study sessions (subject, minutes) and shows total time per subject as a bar chart.
# app.py (Streamlit)
import streamlit as st
import pandas as pd
st.title('Study Tracker')
subject = st.text_input('Subject')
minutes = st.number_input('Minutes', min_value=1)
if st.button('Add session'):
st.write(f'Added {minutes} minutes for {subject}')
# (In lessons we show how to persist this to a CSV and plot totals.)
Resources & next steps
- Interactive Python: Repl.it, Google Colab
- Beginner courses: CS50 (Harvard), freeCodeCamp
- Python docs & tutorials (official)
