This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| people = ("John", "Mary", "John", "Kevin", "Mary") | |
| attendees = set(people) | |
| # It ignores the duplicates | |
| print(attendees) | |
| #adding an element | |
| attendees.add("Cecilia") | |
| print(attendees) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const submissions = [ | |
| ["Alice", "Math", 80], | |
| ["Bob", "Math", 70], | |
| ["Alice", "Science", 90], | |
| ["Bob", "Science", 60], | |
| ["Alice", "Math", 85] | |
| ] | |
| function getStudentDetails(submissions) { | |
| const result = submissions |