0 votes
in Django by
To limit a queryset result to return objects from 4th through 8th object, use ________.

select the correct answer from below options

a) Mymodel.objects.all()[4:8]

b) Mymodel.objects.all()[:8]

c) Mymodel.objects.all()[3:8]

d) Mymodel.objects.all()[4:]

1 Answer

0 votes
by
c) Mymodel.objects.all()[3:8]

Related questions

0 votes
asked Jun 29, 2022 in Django by sharadyadav1986
0 votes
asked Jun 22, 2022 in Django by SakshiSharma
...