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
- Default X points
- break
- AS
- continue
- line width
- train/test
- Python
- variables
- For loops
- start exercise
- polynomial regression
- matplotlib
- machine learning
- Text mining
- SQL
- self parameter
- matplotlib.pyplot
- iterates
- __init__
- data distribution
- Text Analytics
- pie charts
- multiple lines
- Else
- MySQL
- Github
- error
- PANDAS
- line color
- PROJECT
Archives
- Today
- Total
목록slicing (1)
Data Science Explorer

Slicing You can return a range of characters by using slice syntax and should specify the start index and end index. Example Get the characters from position 1 to position 3 (not included): b = "Hello, World!" print(b[1:3]) Slice from the Start b = "Christmas" print(b[:5]) Slice to the End b = "Christmas" print(b[:8]) Negative Indexing b = "Hello, World!" print(b[-5:-2]) Exercises Please solve t..
Python
2023. 10. 22. 11:28