Top 5! Everywhere!
- JavaScript
- SQL
- Java
- Bash/Shell
- Python
- Java
- C
- Python
- C++
- Visual Basic .NET
- Python
- Java
- JavaScript
- C#
- PHP
- JavaScript
- Java
- Python
- PHP
- C#
- JavaScript
- Java
- C
- Python
- C++
«The Incredible Growth of Python»
The Incredible Growth of Python
Рост популярности Python — заслуга ML/DS?
• Machine Learning
• Data Science
• Python
• JavaScript
Используют Python для:
Используют Python в первую очередь для:
28%
Scientific
development
(17% + 11%)
(Data analysis + Machine learning)
Scientific development
Scikit-lear
SciPy
NumPy
pandas
Matplotlib
Plotly
IPython
Jupiter Notebook
TensorFlow
PyTorch
Keras
Anaconda
Conda
Embedded development
MicroPython
ESP32, ESP8266, CC3200/WiPy, pyboard
↓
Game development
Panda3D, Armory3D, Kivy

>>> from collections import Counter
>>> fruits = ['апельсин', 'банан', 'яблоко', 'апельсин',
'банан', 'авокадо', 'авокадо', 'авокадо']
>>> Counter(fruits)
Counter({'авокадо': 3, 'апельсин': 2,
'банан': 2, 'яблоко': 1})
>>> myvar = 3
>>> myvar += 2
>>> myvar -= 1
>>> mystring = "Hello"
>>> mystring += " world."
>>> print(mystring)
Hello world.
>>> myvar, mystring = mystring, myvar
>>> sample = [1, ["another", "list"], ("a", "tuple")]
>>> mylist = ["List item 1", 2, 3.14]
>>> mylist[0] = "List item 1 again" # We're changing the item.
>>> mylist[-1] = 3.21 # Here, we refer to the last item.
>>> mydict = {"Key 1": "Value 1", 2: 3, "pi": 3.14}
>>> mydict["pi"] = 3.15 # This is how you change dictionary values.
>>> mytuple = (1, 2, 3)
>>> myfunction = len
>>> print(myfunction(mylist))
>>> mylist = ["List item 1", 2, 3.14]
>>> print(mylist[:])
['List item 1', 2, 3.1400000000000001]
>>> print(mylist[0:2])
['List item 1', 2]
>>> print(mylist[-3:-1])
['List item 1', 2]
>>> print(mylist[1:])
[2, 3.14]
>>> print(mylist[::2])
['List item 1', 3.14]