Skip to content

Instantly share code, notes, and snippets.

@delululala
delululala / exercise
Last active December 9, 2025 17:44
menu_display.pythonyeeeee
sales = []
#Price List Coffe
menu_prices = {
'Americano':18000,
'Latte':25000,
'Espresso':18000,
'Cappuccino':25000,
'Matcha':27000,
'Butterscoth Latte':27000,
db_id = 'lulumimi'
db_pass = '123456'
user_id = input('Enter your ID: ')
user_password = input('Enter your password: ')
movie_info = {'Agak Laen':50, 'Wicked':40, 'Zootopia':30}
movie_reserved = {'Agak Laen':24, 'Wicked':12, 'Zootopia':4}
flag = 'YES'
#LOGIN
while user_id != db_id or user_password != db_pass:
@delululala
delululala / kmooc_assignment_13주차_과제
Last active December 6, 2025 12:40
누구나 쉽게 할 수 있는 소프트웨어 설계와 파이썬
class Student:
def __init__(self, student_id, student_name, student_year, student_major):
self.student_id = student_id
self.student_name = student_name
self.student_year downloads= student_year
self.student_major = student_major
def sugang(self):
print(f"{self.student_name} 학생의 수강신청이 완료되었습니다.")
@delululala
delululala / py4e_10.2
Created September 13, 2025 10:57
Python4E Exercice
name = input("Enter file:")
if len(name) < 1:
name = "mbox-short.txt"
handle = open(name)
counts = dict()
for line in handle:
line = line.strip()
if line.startswith('From '):