(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..
(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..