강의

멘토링

로드맵

Inflearn Community Q&A

bini121241986's profile image
bini121241986

asked

[Renewal] Python Introduction and Web Crawling Basics Bootcamp [Python, Web, and Data Understanding Fundamentals] (Updated)

Learning Python Basics Most Naturally Through Problem Solving: Data Types, Variables, and Output 3

print 를 왜 자꾸 치시는 거에요?

Written on

·

247

0

print (len(article)) 하면 계속 오류나고 

len(article) 해야 정상적으로 나오는데 왜 자꾸 print를 치시는 거에요?

대체 강의 속 프로그램은 어떻게 설정값이 다르길래 print를 치는데도 똑바로 결과가 나오는거죠?

python웹-크롤링

Quiz

무언가를 화면에 출력하거나 콘솔에 표시할 때 사용하는 파이썬의 기본적인 명령어(함수)는 무엇일까요?

input()

variable

print()

def

Answer 2

1

python2 버전 사용이 의심갑니다.

python3는 print (len(article)) 

python2는 print len(article) 가 옳바른 문법입니다

0

funcoding님의 프로필 이미지
funcoding
Instructor

다음 강의에서 시연해드리며, 유념하시라고 말씀드린대로 파이썬2 가 아니라 파이썬3 를 쓰셔야 합니다.

anaconda와 jupyter notebook 설치 방법 (윈도우환경)

감사합니다.

bini121241986's profile image
bini121241986

asked

Ask a question