본문 바로가기

코딩테스트/프로그래밍 기초 | 출력

[코드트리] 변수값 동시에 복사

변수 값 복사하기

https://www.codetree.ai/missions/4/problems/copying-variable-values?&utm_source=clipboard&utm_medium=text

a,b,c = 1,2,3
a = b = c
print(a,b,c)

 

 

 

 

변수 값 복사하기 2

https://www.codetree.ai/missions/4/problems/copying-variable-values-2?&utm_source=clipboard&utm_medium=text

a,b,c = 5,6,7
a=b=c
print(a,b,c)

 

 

 

 

합을 복사하기

https://www.codetree.ai/missions/4/problems/copy-the-sum?&utm_source=clipboard&utm_medium=text

a,b,c = 1,2,3
a=b=c=a+b+c
print(a,b,c)