본문 바로가기

전체 글

원화 달러 환전함 11.06, 11.07 달러가 조금 떨어졌다 그래봤자 1300원대긴 하지만 어제 오늘 200만원치씩 환전해 본다. 95%우대 받아서 1307.42원으로 환전함 더보기
파이썬 input은 항상 string으로 나옵니당~ 필요시 integer로 바꿔줘야댐! int() 더보기
파이썬 100days_4일차 가위바위보 출력하기 https://replit.com/@hipi-noyenoye/rock-paper-scissors-start#sub.py rock-paper-scissors-start Want to join the course? Start your journey here: https://100daysofpython.dev/ replit.com import random rock = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' paper = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' scissors = ''' _______ ---' ____)____ ______) _____.. 더보기
파이썬 리스트 내용 바꾸기.... https://replit.com/@hipi-noyenoye/day-4-3-exercise#main.py # 🚨 Don't change the code below 👇 row1 = ["⬜️", "⬜️", "⬜️"] row2 = ["⬜️", "⬜", "⬜️"] row3 = ["⬜️", "⬜", "⬜️"] map1 = [row1, row2, row3] print(f"{row1}\n{row2}\n{row3}") position = input("Where do you want to put the treasure? ") # 🚨 Don't change the code above 👆 #Write your code below this row 👇 left_str = int(position[0]) right_str = in.. 더보기
파이썬_랜덤 모듈 불러오기_python random module 와 근데 이걸 진짜 어케 아냐 ㅋㅋ 아무리 코딩이 오픈북 시험같은거라고 하더라도. 암튼, import random을 사용하면 랜덤 모듈을 불러오게 된다. 그리고, 정수표를 랜덤으로 불러오기 위해서는. random.randint 를 사용하면 된다. 정수표가 아니라.... 소수점을 불러오려면 random.random 을 사용하면. 0~0.9999999999 까지가 불러와 진다. 여기서 만약에 0~5 미만의 소수점을 불러오고 싶으면 -> 머리를 좀 써서, random.random()*5 를 하면! 4.9999999까지 곱한 값이 나올듯.....;_; (근데 미만이 아니라, 이하를 사용하고 싶으면 어케하는거지 -_-?) 그리고, 그 외 나만의 모듈을 만드는 방법은 저렇게 새로운 파이썬 파일(?)을 생성한 다음에.. 더보기
파이썬 modulo와 if else 활용한 윤년 계산기 https://replit.com/@hipi-noyenoye/day-3-3-exercise#main.py day-3-3-exercise Want to join the course? Start your journey here: https://100daysofpython.dev/ replit.com 근데 사실 아직 and 활용하는건 안배워서. 저렇게 쓰는게 맞을까? 사실 잘 모르겠다. 그리고 안젤라 해답이 좀더 명쾌해 보이긴 한데, 내가 이해가 안가는 부분은, 저렇게 if 문을 중첩해서 계속 쓰면 그게 그 전 if 문을 포함하는 로직 구조가 되는걸까? 그 전 if 문을 충족 하고(and) 다음 if 문도 충족하고 (and) 다음 if 문을 충족하면 => true, 그 외는 false 라고 이해하면 되는건가?.. 더보기
if와 els및 조건 연산자_python 부트캠프 100days_day3 1. Comparison operators : > , =, 120: print("you can ride the rollercoaster!") age = input("what is your age?") if age 더보기
팁계산기_파이썬 나의 답; https://replit.com/@hipi-noyenoye/tip-calculator-start#main.py tip-calculator-start Want to join the course? Start your journey here: https://100daysofpython.dev/ replit.com **type() 으로, 어떤 유형인지 파악 한 후에 정수/소수로 바꿔야 겠군! 더보기