nomad coder

개발 공부/python

노마드코더 파이썬 챌린지 [3차]

(1) python 6일차 (2) recap & study *강의 링크* python 웹스크래퍼[4.5 ~ 4.9] *For Loops* websites = ( "google.com", "airbnb.com", "facebook.com" ) #using tuple (list is almost same) for website in websites: #get each components in wesbsite tuples print(website) For문: 위의 예시처럼, 여러 자료형(tuple, list)등에서 각각의 item을 이용해서 코드를 실행시 반복문을 사용 *URL Formatting* websites = ( "google.com", "https://airbnb.com", "facebook.com..

개발 공부/python

노마드코더 파이썬 챌린지 [2차]

(1) python 4일차 (2) recap & study *강의링크* python 웹스크래퍼[3.3 ~ 3.7] * And & Or* age = int(input("How old are you?")) if age 18 and age 15, age < 35 둘다 충족시 실행 print("you drink beer!") elif age == 60 or age == 70: #age = 60, age = 70중 하나만 충족시 실행 print("Birthday party!") else: print("Go ahead!") And: 조건이 두개다 충족 시켜야됨 Or: 조건중 하나만 충족 시키면됨 *Python St..

개발 공부/python

노마드코더 파이썬 챌린지 [1차]

(1) python 3일차 (2) recap & study *강의 링크* python 웹스크래퍼[2.9 ~ 2.11]강의 *Default Parameters* def say_hello(user_name="anonymous"):#user_name => parameter, default value = (anonymous) print("Hello",user_name) say_hello("suhyeok")#Argument = suhyeok say_hello()#Arguement = none => default value Parameter(매개변수): 함수 정의할때 사용되는 변수 Argument(인수): 함수를 호출할때 전해주는 변수값 *Return Values* def tax_calc(money): return..

choi수혁
'nomad coder' 태그의 글 목록