수강이 제한됩니다.
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
Enumerate & zip 코드 질문입니다
<코드1> alist = ["a1","a2","a3"] blist = ["b1","b2","b3"] for i, (a,b) in enumerate(zip(alist,blist)): print(i,a,b) 여기서 볼드체 해놓은 for문 안에 a,b를 소괄호 해주는 정확한 이유가 궁굼합니다. zip형태는 튜플형태로 묶어주기 때문에 언팩킹을 위해 소괄호로 해준다고 짐작하고 넘어가려고 했지만 <코드2> a,b,c = zip((1,2,3),(10,20,30),(100,200,300)) print(a,b,c) 이 코드로 언팩킹할때 그냥 a,b,c 로 해줘도 튜플형태로 언팩킹이 되는대 왜 <코드1>의 for문안에 a,b는 반드시 튜플형태로 만들어 줘야 되는가요?
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
강의자료 다운이 불가능합니다
강의 자료 다운이 불가능 합니다. https://goo.gl/Vpzbj8 링크로 연결된 csv 자료 다운을 할수없습니다. 어떻게 해야되나요
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
4주차 go withflow 과제 질문
number_of_cases 를 pass하지 못했는데 혹시 코딩한거 답지같은거 없나요 ?! 빨간색부분이 main함수로 검산해보는건데 주어진 경우에서는 제대로된 답이 나오거든요. 왜pass가안되는지 모르겠어요 -_-.. 다만 제 코드가 못생겼다는건 알겠어요.. 중복되는거 제거하는부분이 파란색이에요참고로
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
backend.ai 설치에서 오류가 납니다
Collecting backend.ai-client Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/backend-ai-client/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/backend-ai-client/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/backend-ai-client/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/backend-ai-client/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/backend-ai-client/ Could not fetch URL https://pypi.org/simple/backend-ai-client/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/backend-ai-client/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping Could not find a version that satisfies the requirement backend.ai-client (from versions: ) No matching distribution found for backend.ai-client pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping 미니콘다의 문제인가 싶어 여러번 재설치 해봤는데도 계속해서 같은 오류가 뜹니다ㅠㅠ
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
Code Assignment: 완료 표시 여부에 관하여
안녕하세요. 각 챕터마다 있는 Code Assignment: 를 진행 후 submit까지 완료한 뒤에 하단에 있는 lablup 과제제출 확인 버튼을 눌러 과제 제출현황을 보면 PASSED 라고 나와있습니다. 근데 이어서 학습하기의 왼쪽 상단에 목차 표시를 눌러 목차 항목을 보면 다른 항목들은 초록색 체크 박스가 활성화 되어있는데 Code Assignment: 부분만 활성화가 되지 않습니다. 혹시 왜 활성화가 되지 않는지 알 수 있을까요??
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
ModuleNotFoundError
첫번째 code assignment 해결을 시도하고 있는데, C드라이브의 workspace - python_mooc 폴더 안에 lab_1_windows가 압축이 풀려있는 상태인데도 cd lab_1_windows를 했을 때 '지정된 경로를 찾을 수 없습니다'라는 메시지가 나옵니다. 파이썬 쉘 실행 후에 arithmetic_function을 import해도 ModuleNotFoundError가 뜹니다. 해당 폴더들을 지우고 다시 만드려고 해도 이미 있는 폴더라는 메시지가 나오는데, 어떻게 해결하면 될까요?
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
아이디가 한글로 되어있는 것을 영어로 어떻게 바꾸나요?
나름 제어판에서 계정 이름 변경도 시도했을때 영어로 바뀌는 것을 확인은 했으나 cmd 상에서는 여전히 아이디가 한글로 나오네요..
- 해결됨프로그래밍, 데이터 과학을 위한 파이썬 입문
for 문에서 invalid syntax
for i in range(i, 10): i <10 i += 1 print(i) 이렇게 했을 때 invalid syntax 가 나는 이유가 i 가 for 문 안에 있어서 그 밖으로 나오면 모르는 값이라고 해서 그런 건가요?
- 해결됨프로그래밍, 데이터 과학을 위한 파이썬 입문
for 문
for i in range(i, 10): i < 10 i += 1 print(i) 이렇게 하니까 True 2 True 3 True 4 True 5 True 6 True 7 True 8 True 9 True 10 이렇게 나오던데 왜 True 가 나오는 건가요?
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
챕터5 과제제출 동영상 내용에
Lab #4 - 화씨변환기라고 돼있고 그밑에 설명에도 4주차 강의 Lab Assignment 라고 돼있네요. 동영상이 잘못올라온거같구요 그리고 과제 제출할수 있는 게시판도 사라졌어요.
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
4주차 과제 설명 게시글이 없네요.
4주차 과제가 Go with flow인데 그에 관한 게시글이 없어요... 과제 제출 게시판도 없고요. 에휴;; 뭐가 이렇게 다 허술한지
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
Code assignment
Code assignment 페이지?가 없어졌는데, 왜 그런건가요? 일시적인건가요? 과제할려고 보니까 안 보여서요..
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
code assignment페이지에 대해서
code assignment페이지가 없는데 뭐가 잘못 된거죠?
- 해결됨프로그래밍, 데이터 과학을 위한 파이썬 입문
반복의 제어 - else ppt에서 질문 있습니다.
12: 02 초 반복의 제어- else 영상 장면에서 for i in range(10): print(i), 여기서도 print(i) 다음에 , 를 쓰시고 밑에 i = 0 while i <10: print(i,) 여기서도 print(i,)에 ,를 쓰셔서 왜 콤마를 쓰셨는지 궁금합니다. atom으로 콤마를 없애고 써봤는데도 결과가 똑같이 나와서요. 그리고 while 문에서 print(i,) 해도 콤마가 같이 안 나온 이유는 따옴표를 안 해서 그런 거죠?
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
for 문
for i in (10,1): print(i) 이렇게 하면 왜 결과가 아무것도 안 나오나요?
- 해결됨프로그래밍, 데이터 과학을 위한 파이썬 입문
% 포맷팅
print("Product: %10s, Price per unit: %10.3f." % ("Apple", 5.243))를 하면 Apple 앞에 5글자를 더 쓸 수 있게 공간이 생기는 걸 보고서print("Product: %2s." % "rose")를 해봤는데요.왜 Product: se.이렇게 안 나오고Product: rose.이렇게 나오나요?%와 s 사이에 숫자가 rose의 글자 숫자인 4보다 작으면 글자가 잘려야 하지 않나요?
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
백엔드 클라이언트 에러
안녕하세요 .. 예전에 오류가 있어서 고친 후 이번에 다시 배우려고 들어왔는데 또 오류가 생겼네요 이번엔 또 다른 오류네요..../submit.sh 과제코드 기입 후 실행하면SSL handshake failed on verifying the certificate라고 뜨며마지막에 ✘ BackendClientError('Request to the API endpoint has failed.nCheck your network connection and/or the server status.')라고 나옵니다.백엔드 클라이언트 에러라고 뜨는 걸 검색해보니 제 선에서 해결할 수 있는 문제는 아닌 것 같아요.
- 해결됨프로그래밍, 데이터 과학을 위한 파이썬 입문
데이터 타입에서 0은 뭔가요?
데이터 타입에서 Integer에 양의 정수나 음의 정수가 포함된다고 했는데그러면 0은 Integer인가요? 아니면 float인가요?
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
scalar_matrix_product(alpha, matrix_variable) 실행결과가 같은데 왜 fail이 뜨는 걸까요?
def scalar_matrix_product(alpha, matrix_variable):return matrix_transpose([[alpha m for m in t] for t in zip(matrix_variable)])matrix_transpose함수를 이용해서 짜봤습니다만... fail이 뜨네요 혹시 위에 있는 함수를 활용하면 안되나요?
- 미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
과제 제출 오류
아래와 같이 에러가 뜹니다BackendClientError: Request to the API endpoint has failed.Check your network connection and/or the server status. Traceback File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ai/backend/client/cli/run.py", line 118, in runresources=resources)File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ai/backend/client/base.py", line 21, in _methodreturn cls.session.worker_thread.execute(coro)File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ai/backend/client/session.py", line 52, in executeraise resultFile "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ai/backend/client/session.py", line 36, in runresult = loop.run_until_complete(coro)File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 467, in run_until_completereturn future.result()File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ai/backend/client/kernel.py", line 62, in get_or_createasync with rqst.fetch() as resp:File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ai/backend/client/request.py", line 78, in aenterraise BackendClientError(msg) from e