Skip to content
Snippets Groups Projects
Commit 51237426 authored by Minseong Kwon's avatar Minseong Kwon
Browse files

Update input_test2 결과.txt

parent b961cb51
No related branches found
No related tags found
No related merge requests found
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
>>> 10
10
>>> 20
20
>>> 10
10
2
>>> 0
0
2
>>> 02
SyntaxError: invalid token
>>> 20
20
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
>>> a
'10'
>>> b
'20'
>>> type(a)
<class 'str'>
>>> type(b)
<class 'str'>
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
>>> a
'10'
>>> b
'20'
>>> result
200
>>> type(a)
<class 'str'>
>>> print(result)
200
>>> a+b
'1020'
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
10*20=200
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
10*20=200
10*20=200
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
10*20=200
10*20=200
10*20=200
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
10*20=200
10*20=200
10*20=200
Traceback (most recent call last):
File "C:/Users/권민성/Desktop/python/Input_test2.py", line 16, in <module>
print(a*b)
TypeError: can't multiply sequence by non-int of type 'str'
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
10*20=200
10*20=200
10*20=200
200
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
두번째 수를 입력하세요
20
10*20=200
10*20=200
10*20=200
200
Traceback (most recent call last):
File "C:/Users/권민성/Desktop/python/Input_test2.py", line 18, in <module>
print(a+"*"+b+"="+result)
TypeError: can only concatenate str (not "int") to str
>>>
============ RESTART: C:/Users/권민성/Desktop/python/Input_test2.py ============
첫번째 수를 입력하세요
10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment