Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- line width
- Text Analytics
- Default X points
- Github
- pie charts
- self parameter
- polynomial regression
- Text mining
- line color
- error
- machine learning
- iterates
- AS
- For loops
- data distribution
- SQL
- Else
- break
- variables
- PROJECT
- multiple lines
- matplotlib.pyplot
- MySQL
- matplotlib
- continue
- Python
- PANDAS
- start exercise
- __init__
- train/test
Archives
- Today
- Total
목록Else (2)
Data Science Explorer

Python loops Python has two primitive loop commands: while loops for loops The While Loop We can execute a set of statements as long as a condition is true. ** Do not forget ":" when you use the while loop.** Example Print i as long as i is less than 10: i = 2 while i < 10: print (i) i += 1 ** i += 1 is equivalent to writing i = i + 1. ** The break statement We can stop the loop with the break s..
Python
2023. 10. 20. 21:31

Python Conditions and If statements Equals: a == b Not Equals: a != b Less than: a = b Those are usually used in IF statement and loops. For IF statement, we use if keywords. Example a = 33 b = 95 if b > a: print("b is greater than a") ** In IF statement, indentation is very important, so you should keep the correct indentation for the ..
Python
2023. 10. 20. 20:38