Приветствуем вас в мире Python! Здесь вы найдете все необходимые
ресурсы и материалы для успешного изучения
языка программирования
list_nums = [1
,2
,3
,4
,5]
for index , num in enumerate(list_nums):
print(f'{index + 1}. {num}')
for index , num in enumerate(list_nums):
print(f'{index + 1}. {num}')
Python основы
class Coord:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
Python ООП
сlass ProductView(ListView):
model = Product
template_name = 'index.html'
context_object_name ='produсts'
ordering = ['id']
model = Product
template_name = 'index.html'
context_object_name ='produсts'
ordering = ['id']