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
| sales = [] | |
| #Price List Coffe | |
| menu_prices = { | |
| 'Americano':18000, | |
| 'Latte':25000, | |
| 'Espresso':18000, | |
| 'Cappuccino':25000, | |
| 'Matcha':27000, | |
| 'Butterscoth Latte':27000, |
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
| 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: |
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
| 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} 학생의 수강신청이 완료되었습니다.") |
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
| 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 '): |