#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http 제목lecture7 conditionalstatement 첫 실습문제 질문입니다.2022-04-21 21:22작성자213userInput = input(prompt="Enter integet (1..9): ")userInput = int(userInput)if (userInput >= 1) and (userInput <=9) : # Grammar.1 print("Your input is " + str(userInput)) print("Right input and execute program.")else: # Grammar.2 print("Your input is " + str(userInput)) print("Wrong input and terminate program.")여기서 3.2와 같은 float형 수를 input하니까 오류가 뜨더라구요혹시 float형 수를 입력해서 인가요??두번째 줄의 int형으로 바꿔준다는 문장떄문에 float형을 입력해도 실행될거라 생각했는데 어느 부분에서 오류가 생겼는지 알려주시면 감사드리겠습니다. 목록수정삭제답변글쓰기 댓글 [0] 댓글작성자(*)비밀번호(*)내용(*) 댓글 등록 더보기이전[re]질문입니다.수업도우미 정승우2022-04-22다음[re]lecture7 conditionalstatement 첫 실습문제 질문입니다.조교 이효건2022-04-21 Powered by MangBoard | 워드프레스 쇼핑몰 망보드