강의

멘토링

커뮤니티

Inflearn Community Q&A

ekspatial's profile image
ekspatial

asked

Pass the Kakao Cote 6-week course! Real Python Coding Test

Inputting 1D and 2D arrays (1)

3:30 - sys.stdin.readline 질문

Resolved

Written on

·

95

0

my_input = sys.stadin.readline 으로 정의해주셨는데, 혹시 my_input = sys.stadin.readline() 이렇게 정의하고 list(map(int, my_input.split()))이렇게 쓸 수도 있나요?

코딩-테스트알고리즘소프트웨어-설계data-structure

Answer 1

0

안녕하세요!

 

my_input = sys.stadin.readline()

으로 하면 readline을 실행하고 그 반환값을 my_input에 저장하는 것이 되어서 원하는 실행결과를 얻지 못하게 됩니다!

좋은 질문 감사하고

도움되셨길 바랍니다 ㅎㅎ

ekspatial's profile image
ekspatial

asked

Ask a question