Network disconnection
Description
a,b는 각각 1,2의 값을 가지고 있습니다. 튜플을 이용해서 a와 b의 값을 서로 바꿔보세요.
unpacking은 패킹된 변수에서 여러개의 값을 꺼내옵니다. 아래의 예를 참고하여 튜플을 이해하고 문제를 해결해 보세요.
c = (3, 4)
d, e = c # c의 값을 언패킹하여 d, e에 값을 저장
f = d, e # 변수 d와 e를 f에 패킹
Fill type challenge HOWTO
- In the Fill type challenge, you have to fill the blank with appropriate code
- The given code except the blank cannot be edited.
- An error message will be shown in the Result area when you leave the blank empty.
1
2
3
4
5
6
7
a = 1
b = 2
#코드를 작성해 보세요.
a, b =
print("a : {}, b : {}".format(a, b))
Result
Stop
Result of [Run] or [Submit] will be displayed here