# data 구조 data = [ { 'name': 'Instagram', 'follower_count': 346, 'description': 'Social media platform', 'country': 'United States' }, { 'name': 'Cristiano Ronaldo', 'follower_count': 215, 'description': 'Footballer', 'country': 'Portugal' }, ... # 중첩 데이터의 key를 호출했으면 a=random.choice(data) b=random.choice(data) # 각 values는 a["name"] a["follower_count"] a["description"] #형태로 호출할 수 있고 data[a]["name..
#Everyone gets bugs. #1. Decribe the problem (문제 그려보기) def my_function(): for i in range(1, 20): #20은 포함되지 않음, 아래 조건을 만족하려면 21로 수정 if i == 20: print("You got it") my_function() #2. Reproduce the Bug (재 구현) from random import randint dice_imgs = ["❶", "❷", "❸", "❹", "❺", "❻"] dice_num = randint(1, 6) # lists --> 0~5 print(dice_imgs[dice_num]) #3. Play Computer? Be a Computer! year = int(input("Wh..
def clear_screen(): import os if os.name in ('nt', 'dos'): # If Machine is running on Windows, use cls os.system('cls') else: os.system('clear') def guess_what(retry_count): import random random_number = random.randint(1,100) print(random_number) for chance in range(retry_count,0,-1): print(f"You have {chance} attempts remaining to guess the number.") guess_number = int(input("Make a guess: ")) ..
def clear_screen(): import os if os.name in ('nt', 'dos'): # If Machine is running on Windows, use cls os.system('cls') else: os.system('clear') def print_ongoing_card(your_card, computer_card): print(f"\tYour cards: {your_card}, current score: {sum(your_card)}") print(f"\tComputer's first card: {computer_card[0]}") def your_turn(your_card, cards): your_more_card = random.choice(cards) if your_m..
#힌트없이 직접 작성1 ############### Blackjack Project ##################### #Difficulty Normal ?: Use all Hints below to complete the project. #Difficulty Hard ?: Use only Hints 1, 2, 3 to complete the project. #Difficulty Extra Hard ?: Only use Hints 1 & 2 to complete the project. #Difficulty Expert ?: Only use Hint 1 to complete the project. ############### Our Blackjack House Rules #################..
from art import logo def add(n1, n2): return n1+n2 def substract(n1, n2): return n1-n2 def multiply(n1, n2): return n1*n2 def divide(n1, n2): return n1/n2 #함수를 정의하고 함수를 딕셔너리에 결합 : key는 산술부호, value는 각 함수명 calculate = { "+": add, "-": substract, "*": multiply, "/": divide, } def calculator(): import os if os.name in ('nt', 'dos'): # If Machine is running on Windows, use cls os.system('cls') else: ..
- Total
- Today
- Yesterday
- vmware.powercli
- powercli
- dp-2
- set()
- 스토리지
- 변수화
- LIST
- 부동없이
- cloud-init
- 읽어오기
- 차집합
- exadata
- 중복제거
- storage
- oracle
- 정렬
- dezoomify
- fromkeys
- artandculture
- sysprep
- 3par
- 배열
- vmware
- 대소문자
- EXA
- Join
- powershell
- virt-sysprep
- insert
- dp-1
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |