Recent Posts
Recent Comments
Link
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Archives
Today
Total
관리 메뉴

개발 일기

[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