Skip to content

Instantly share code, notes, and snippets.

@Cecilia-Grace
Cecilia-Grace / main.py
Created July 8, 2026 15:39
Selecting data with SQL
import sqlite3
conn = sqlite3.connect('school.db')
cursor = conn.cursor()
# cursor.execute('''
# CREATE TABLE IF NOT EXISTS Students(
# id INTEGER PRIMARY KEY AUTOINCREMENT,
# name TEXT,
# age INTEGER
@Cecilia-Grace
Cecilia-Grace / sets.py
Last active June 3, 2026 11:59
Group 4 - Sets
people = ("John", "Mary", "John", "Kevin", "Mary")
attendees = set(people)
# It ignores the duplicates
print(attendees)
#adding an element
attendees.add("Cecilia")
print(attendees)
@Cecilia-Grace
Cecilia-Grace / App.css
Last active May 8, 2026 10:37
Group 2 - Updating document Title
.app-shell {
min-height: 100vh;
padding: 40px 18px;
display: flex;
justify-content: center;
background: linear-gradient(180deg, #eef3f8 0%, #f8fbff 100%);
}
.registration-page {
width: min(100%, 760px);
@Cecilia-Grace
Cecilia-Grace / Cecilia_Ann_Lynne.js
Created April 2, 2026 09:59
Student Marks Logic
const submissions = [
["Alice", "Math", 80],
["Bob", "Math", 70],
["Alice", "Science", 90],
["Bob", "Science", 60],
["Alice", "Math", 85]
]
function getStudentDetails(submissions) {
const result = submissions