본문 바로가기
목차
Python

[Python] Arithmetic, Variables, Types and Assignment

by ds31x 2024. 1. 24.
728x90
반응형

Numeric Type and Arithmetic in Python (+Augmented Assignment)

https://dsaint31.tistory.com/516

 

[Python] Arithmetic in Python and Augmented Assignment

1. Precedence of Arithmetic OperationsHigher     ** > -(negation) > * = / = // = % > + = -(subtraction)     Lower우선순위를 기억하는 것도 중요하지만, 헷갈리면 그냥 parentheses로 묶어주면 된다. (가독성을 위해서도

dsaint31.tistory.com

 

https://dsaint31.tistory.com/515

 

[Python] (Data) Type: Summary

1. Type 이란?Programming에서 사용되는 모든 value 혹은 object 들의 종류 를 (data) type이라고 부름.수학에서 숫자의 종류(type)를 실수, 정수, 자연수 등으로 나누는 것을 생각하면 쉽다.Programming에서는 문

dsaint31.tistory.com


Variable and Assignment

https://dsaint31.tistory.com/510

 

[Python] Keyword란? (Soft Keyword 포함)

Keywords (or Reserved Words)Keyword란 Python에서 특별한 단어 (special word)들을 가르킨다.Keyword들은 Python에서 특정한 목적으로 사용되도록 이미 정해진 word들로Python에서 정해놓은 방법 외로는 사용을 할 수

dsaint31.tistory.com

 

https://dsaint31.tistory.com/462

 

[Basic] Literal

Literal소스 코드 상에서 고정된 값을 가르킴. (또는 고정된 값을 나타내는 표기법을 의미함.)Programming language에서 data의 값을 지정(specifying data values)하는 방법은 다음 중의 하나임.1. Literal을 사용.2

dsaint31.tistory.com

 

https://dsaint31.tistory.com/531

 

[Python] Assignment (Basic)

1. General formAssignment statement의 일반적인 형태는 다음과 같음.varible = expression# variable = other_variable2. 수행 순서= 기호의 오른쪽의 expression을 evaluation함 (하나의 값으로 reduction)1번의 값에 해당하는 ob

dsaint31.tistory.com

 

http://ds31x.blogspot.com/2023/07/etc-naming-convention.html

 

[Etc] Naming Convention

Naming Convention은 프로그래밍에서 variable이나 class등의 이름을 짓는 일종의 약속이다. Camel Naming (or Camel Case) Java나 C++(MFC나 windows 대상인 경우)등에서는 Camel Naming ...

ds31x.blogspot.com

 

https://dsaint31.tistory.com/517

 

[Python] Variable (and Object)

1. 정의 Python에서 Variable은 Memory에 할당된 Ojbect를 참조하는 Name (=Reference)에 불과하다. 이 문서에서 Object는 Python에서의 Object로 type과 value, ID (CPython에서는 할당된 memory address), 그리고 reference count

dsaint31.tistory.com

 

https://dsaint31.tistory.com/531

 

[Python] Assignment (Basic)

1. General form Assignment statement의 일반적인 형태는 다음과 같음. varible = expression 2. 수행 순서 = 기호의 오른쪽의 expression을 evaluation함 (값으로 reduction) 1번의 값에 해당하는 object가 저장된 memory address

dsaint31.tistory.com

 

2025.03.19 - [Python] - [Py] 객체(object)에 대한 정보 확인하기

 

[Py] 객체(object)에 대한 정보 확인하기

Python에서 object(객체)란?type, id, refcount, value 를 속성으로 가지고 있는 a chunk of data.https://dsaint31.tistory.com/517 [Python] Variable (and Object)Variable (and Object)1. 정의Python에서 Variable은 Memory에 할당된 Object

ds31x.tistory.com

 


Shallow Copy vs. Deep Copy

https://dsaint31.tistory.com/499

 

[Python] Assignment와 Shallow Copy, Deep Copy

Shallow Copy와 Deep Copy Python에서 assignment를 수행될 때, 오른쪽이 reference (즉 variable이 =연산자 우측에 있음)인 경우 기본적으로 Shallow Copy가 발생한다. 하지만 특정 경우에는 Deep Copy 가 필요한 경우가

dsaint31.tistory.com

 

728x90