Зміст курсу
Introduction to Data Analysis in Python
Introduction to Data Analysis in Python
For Loop
We use loops if we want to repeat any action n-times.
prices = [100, 458, 231, 378] for i in prices: print(i, end = '')
# Decreasing prices by 1 prices = [3, 5, 6, 2, 7, 8] for i in prices: print(i, end = ' ')
end = ' '
means that the result will be written in one row (not column).
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 7