Bạn đang xem thử công khai
Đăng nhập để lưu tiến độ, làm bài tập, thảo luận và nhận phản hồi.
After this unit you will: correctly predict whether a value is truthy or falsy, and slice a string at the right positions.
False None 0 0.0 '' [] () {} set(). Everything else is truthy — even the string "False".True + True equals 2 (booleans are numbers).s[a:b] stops just before b; s[::-1] reverses.