옹알이 문제 설명 머쓱이는 태어난 지 11개월 된 조카를 돌보고 있습니다. 조카는 아직 "aya", "ye", "woo", "ma" 네 가지 발음과 네 가지 발음을 조합해서 만들 수 있는 발음밖에 하지 못하고 연속해서 같은 발음을 하는 것을 어려워합니다. 문자열 배열 babbling이 매개변수로 주어질 때, 머쓱이의 조카가 발음할 수 있는 단어의 개수를 return하도록 solution 함수를 완성해주세요. 입출력 예 babbling : result ["aya", "yee", "u", "maa"] 1 ["ayaye", "uuu", "yeye", "yemawoo", "ayaayaa"] 2 ex1) aya만 발음 가능 ex2) ayaye, yemawoo 발음 가능 def solution(babbling): ..
jsonDecodeError가 발생하고 있음... from tkinter import * from tkinter import messagebox from random import choice, randint, shuffle import pyperclip import json # -----------------gen password----------------------# def gen(): password_entry.delete(0, 20) # 생성 전에 화면의 패스워드 엔트리엣 삭제 letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w'..
Days29에서 생성한 웹싸이트 패스워드 관리 프로그램의 저장파일을 JSON 형식으로 수정하고, 최초 파일이 없을 경우 등 에러에 대한 예외처리를 적용한 업그레이드 버전을 작성함. 이는 Search 기능을 포함한 최종버전의 -1 버전임. from tkinter import * from tkinter import messagebox from random import choice, randint, shuffle import pyperclip import json # json확장자 파일을 wirte(dump)하고, read(load)하고, update(update)하기 위한 모듈 import # -----------------gen password----------------------# def gen(): ..
import pandas #TODO 1. using csv file, Create a dictionary in this format like: #{"A": "Alfa", "B": "Bravo"} data = pandas.read_csv("./nato_phonetic_alphabet.csv") data_dict_comprehension = { row.letter:row.code for (index,row) in data.iterrows() } #TODO 2. Create a list of the phonetic code words from a word that the user inputs. def phonetic(): word = input("Enter a word: ").upper() try: phone..
[IndexError] fruits 리스트 내의 범위를 벗어나는 인덱스 에러가 발생하면, 인덱스 에러 대신에 디폴트 값인 'Fruit pie' 를 출력할 수 있도록 코딩. fruits = ["Apple", "Pear", "Orange"] #TODO: Catch the exception and make sure the code runs without crashing. def make_pie(index): try: fruit = fruits[index] except IndexError: print("Fruit pie") else: print(fruit + " pie") make_pie(int(input("Number(0-2): "))) [KeyError] 딕셔너리에서 Likes 키가 없는 리스트가 있기 때문..
#BMI Example height = float(input("Height: ")) weight = int(input("Weight: ")) if height > 3: raise ValueError("Human Height should not be over 3 meters.") bmi = weight / height ** 2 print(bmi) ---------------------------------------- Height: 43 Weight: 65 Traceback (most recent call last): File "C:\Users\kiost\PycharmProjects\pythonProject\Days30_HandlingErrorsandExceptions\main.py", line 55, i..
- Total
- Today
- Yesterday
- powershell
- dp-1
- dezoomify
- cloud-init
- set()
- storage
- EXA
- 정렬
- 읽어오기
- fromkeys
- 배열
- 3par
- 변수화
- insert
- dp-2
- 부동없이
- Join
- sysprep
- artandculture
- 중복제거
- vmware.powercli
- exadata
- 대소문자
- oracle
- 스토리지
- virt-sysprep
- 차집합
- powercli
- LIST
- vmware
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |