alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] import art #from art import logo print(art.logo) def caesar(text,shift,direction): output_text='' if direction == "encode": for char in text: if char in alphabet and ((alphabet.index(char))+shift) 25: output_text += alphabet[((alphabet.index(char))+shift)%..
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] direction = input("Type 'encode' to encrypt, type 'decode' to decrypt:\n") text = input("Type your message:\n").lower() shift = int(input("Type the shift number:\n")) #TODO-1: Create a function called 'encrypt' that takes the 'text' and 'shift' as inputs. ..
# encode 를 선택하고, 텍스트 메세지를 입력한 후 shift할 양을 넣으면, # shift되어 암호화 된 텍스트가 출력된다. alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] direction = input("Type 'encode' to encrypt, type 'decode' to decrypt:\n") text = input("Type your message:\n").lower() shift = int(input("Type the shift number:\n")) #TODO-1: Create..
#Write your code below this line ? def prime_checker(number): devided_number=[] count=0 for check in range(1,number+1): if number%check == 0: count+=1 devided_number.append(check) print(devided_number) if count==2: #1 and itself print(f"Number \'{number}\' is a prime number.") else: print(f"Number \'{number}\' is Not a prime number.") #Write your code above this line ? #Do NOT change any of the ..
#math 모듈, ceil (round,ceil, floor,trunc) #Write your code below this line ? import math def paint_calc(height, width, cover): cal_paint=int(math.ceil(height*width/cover)) print(f"You\'ll need {cal_paint} cans of paint.") #Write your code above this line ? # Define a function called paint_calc() so that the code below works. # ? Don't change the code below ? test_h = int(input("Height of wall: ")..
#Functions #--------- def my_function(): #Do something #Then do this #Finally do this #ex # Review: # Create a function called greet(). # Write 3 print statements inside the function. # Call the greet() function and run your code. def greet(): print("print line 1") print("print line 2") print("print line 3") greet() ------------------------- print line 1 print line 2 print line 3 #Functions with..
from replit import clear import hangman_art import hangman_words import random print(hangman_art.logo) chosen_word=random.choice(hangman_words.word_list) #or from hangman_words import word_list 후 hangman_words.을 제외할 수도 있다 print(f'Pssst, the solution is {chosen_word}.') display=[] for letter in chosen_word: display+="_" print(display) end_of_game = False lives = 6 guessed_letter=[] while not end_..
- Total
- Today
- Yesterday
- powershell
- 스토리지
- dp-2
- 차집합
- vmware
- 부동없이
- 3par
- LIST
- 읽어오기
- Join
- powercli
- 정렬
- storage
- oracle
- 변수화
- fromkeys
- 배열
- cloud-init
- virt-sysprep
- sysprep
- dp-1
- artandculture
- dezoomify
- vmware.powercli
- insert
- set()
- exadata
- 중복제거
- 대소문자
- EXA
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |