HappyCoding

    python 알파벳 대문자가 포함되어 있는지 확인하는 로직

    import string def validate_password(password): # 문자열이 8자 이상인지 확인. is_long = False if len(password) >= 8 : is_long =True # 문자열에 숫자가 포함되어 있는지 확인 includes_digit = False for digit in password: if digit.isdigit(): includes_digit = True # 문자열에 알파벳 대문자가 포함되어 있는지 확인 includes_upper = False for char in password: if char.isupper(): includes_upper = True # 문자열에 알파벳 소문자가 포함되어 있는지 확인 includes_lower = False fo..

    [DeepLearning] Object Detection 네트워크

    object detection은 크게 두가지로 나뉘는데 two-stage detector 도 성능은 좋지만 속도는 one-stage detector이게 빠른 경우가 많다. one-stage detector → YOLO, SSD, Retina-Net two-stage detector → RCNN, SPPNet, Fast RCNN 등

    PYTHON 성적

    중간고사, 기말고사 점수 두 개를 입력받기 input1 = int(input()) input2 = int(input()) score = (input1 + input2)/2 if input1 ==0 or input2 == 0: print("F") elif score >= 80: print("A+") elif score >= 60: print("A0") elif score >= 40: print("B+") else: print("B0")

    Python Exercise: Calculate the sum and average of n integer numbers / 사용자의 입력을 받아 평균(average) 구하기

    count = 0 sum = 0.0 number = 1 while number != 0: number = int(input()) sum = sum + number count += 1 print(sum / (count-1)) 0을 입력할 때까지 입력받은 수를 가지고 평균 구하는 방법 참고 : https://www.w3resource.com/python-exercises/python-conditional-exercise-42.php