개발 일기

[Udacity Python] Characteristics / Assignment Functions 본문

Tech/Python

[Udacity Python] Characteristics / Assignment Functions

flow123 2021. 7. 5. 23:06

#Python's Characteristics

- Case Sensitive 

- Spacing Matters : e.g. O Print(3*7)  Print (3*7-1) 

 

#How to define variables? All lower case letters and underscores to separate words (E.g. my_height = 58)

 

#Assignment Functions 

Once you assign 'Rainfall -= rainfall * 0.1' , rainfall's value is switched to the assigned (90% of rainfall =  4500000) 

 

You may use 'rainfall = rainfall + reservoir_volume'. but taking advantage of assignment operators, like 'rainfall +- = reservoir_volume' is more concise 

 

From: Udacity - Introduction to Python 

 

Udacity

 

classroom.udacity.com

'Tech > Python' 카테고리의 다른 글

[Udacity Python] Lesson 6 - Git Bash 에 Anaconda 설치하기  (0) 2021.07.23
Comments